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;

View file

@ -241,11 +241,6 @@ public:
TODO_AARCH64();
}
u64 time_spent_idle() const
{
TODO_AARCH64();
}
static u32 count()
{
TODO_AARCH64();
@ -259,6 +254,8 @@ public:
static void deferred_call_queue(Function<void()>);
u64 time_spent_idle() const;
static u32 smp_wake_n_idle_processors(u32 wake_count);
[[noreturn]] static void halt();