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
commit 33cdc1d2f1
Notes: sideshowbarker 2024-07-18 22:49:20 +09:00
3 changed files with 4 additions and 4 deletions

View file

@ -413,9 +413,9 @@ void Thread::finalize_dying_threads()
}
}
bool Thread::tick(bool in_kernel)
bool Thread::tick()
{
if (in_kernel) {
if (previous_mode() == PreviousMode::KernelMode) {
++m_process->m_ticks_in_kernel;
++m_ticks_in_kernel;
} else {