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:
parent
0bd558081e
commit
33cdc1d2f1
3 changed files with 4 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue