mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
Kernel: Use new Thread::previous_mode to track ticks
This commit is contained in:
parent
0bd558081e
commit
33cdc1d2f1
Notes:
sideshowbarker
2024-07-18 22:49:20 +09:00
Author: https://github.com/tomuta
Commit: 33cdc1d2f1
Pull-request: https://github.com/SerenityOS/serenity/pull/5100
Reviewed-by: https://github.com/awesomekling
3 changed files with 4 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue