mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:47:45 +00: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;
|
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)
|
u32 Processor::smp_wake_n_idle_processors(u32 wake_count)
|
||||||
{
|
{
|
||||||
(void)wake_count;
|
(void)wake_count;
|
||||||
|
|
|
@ -241,11 +241,6 @@ public:
|
||||||
TODO_AARCH64();
|
TODO_AARCH64();
|
||||||
}
|
}
|
||||||
|
|
||||||
u64 time_spent_idle() const
|
|
||||||
{
|
|
||||||
TODO_AARCH64();
|
|
||||||
}
|
|
||||||
|
|
||||||
static u32 count()
|
static u32 count()
|
||||||
{
|
{
|
||||||
TODO_AARCH64();
|
TODO_AARCH64();
|
||||||
|
@ -259,6 +254,8 @@ public:
|
||||||
|
|
||||||
static void deferred_call_queue(Function<void()>);
|
static void deferred_call_queue(Function<void()>);
|
||||||
|
|
||||||
|
u64 time_spent_idle() const;
|
||||||
|
|
||||||
static u32 smp_wake_n_idle_processors(u32 wake_count);
|
static u32 smp_wake_n_idle_processors(u32 wake_count);
|
||||||
|
|
||||||
[[noreturn]] static void halt();
|
[[noreturn]] static void halt();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue