ax_task/sched/system/cpu/local/owner_idle.rs
1//! Remote-work and atomic idle-polling facade.
2
3use super::*;
4
5impl CpuLocal {
6 /// Reports pending remote work before idle or scheduler exit.
7 pub(crate) fn has_remote_work(&self) -> bool {
8 self.remote.has_remote_work()
9 }
10
11 /// Publishes the idle/polling state and performs the final WFI recheck.
12 pub(crate) fn prepare_idle_wait(&self) -> bool {
13 self.remote.prepare_idle_wait()
14 }
15
16 /// Returns whether this CPU is between idle publication and WFI completion.
17 pub fn is_idle_polling(&self) -> bool {
18 self.remote.is_idle_polling()
19 }
20}