1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:07:44 +00:00

Kernel/aarch64: Implement Processor::time_spent_idle()

This commit is contained in:
Caoimhe 2023-04-03 19:49:08 +01:00 committed by Jelle Raaijmakers
parent bd2011406e
commit 3f69ef86c2
2 changed files with 7 additions and 5 deletions

View file

@ -156,6 +156,11 @@ u32 Processor::clear_critical()
return prev_critical;
}
u64 Processor::time_spent_idle() const
{
return m_idle_thread->time_in_user() + m_idle_thread->time_in_kernel();
}
u32 Processor::smp_wake_n_idle_processors(u32 wake_count)
{
(void)wake_count;