1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 21:58:10 +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

@ -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 {