mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
Wrong calculation for last task ticks
This commit is contained in:
parent
c601e6c76c
commit
81512f2b57
@ -458,7 +458,7 @@ namespace Tasking
|
||||
}
|
||||
CPU::x64::writecr3({.raw = (uint64_t)KernelPageTable}); /* Restore kernel page table for safety reasons. */
|
||||
uint64_t SchedTmpTicks = CPU::Counter();
|
||||
this->LastTaskTicks = SchedTmpTicks - this->LastTaskTicks;
|
||||
this->LastTaskTicks.Store(SchedTmpTicks - this->SchedulerTicks.Load());
|
||||
CPUData *CurrentCPU = GetCurrentCPU();
|
||||
schedbg("Scheduler called on CPU %d.", CurrentCPU->ID);
|
||||
schedbg("%d: %ld%%", CurrentCPU->ID, GetUsage(CurrentCPU->ID));
|
||||
|
Loading…
x
Reference in New Issue
Block a user