1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:28:11 +00:00

Kernel: Use new Thread::previous_mode to track ticks

This commit is contained in:
Tom 2021-01-25 16:37:36 -07:00 committed by Andreas Kling
parent 0bd558081e
commit 33cdc1d2f1
3 changed files with 4 additions and 4 deletions

View file

@ -500,7 +500,7 @@ void Scheduler::timer_tick(const RegisterState& regs)
[[maybe_unused]] auto rc = perf_events.append_with_eip_and_ebp(regs.eip, regs.ebp, PERF_EVENT_SAMPLE, 0, 0);
}
if (current_thread->tick((regs.cs & 3) == 0))
if (current_thread->tick())
return;
ASSERT_INTERRUPTS_DISABLED();