mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
Kernel/aarch64: Implement Processor::time_spent_idle()
This commit is contained in:
parent
bd2011406e
commit
3f69ef86c2
2 changed files with 7 additions and 5 deletions
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue