mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 04:37:55 +00:00
Kernel: Use new Thread::previous_mode to track ticks
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user