executor: add faster ARM-specific impl.

Does a wake+poll in 79 cycles in nrf52840.
This commit is contained in:
Dario Nieuwenhuis
2023-11-15 01:19:32 +01:00
parent 1f9b649f80
commit 27e6634c9d
2 changed files with 105 additions and 1 deletions

View File

@ -11,7 +11,8 @@
#[cfg_attr(not(target_has_atomic = "ptr"), path = "run_queue_critical_section.rs")]
mod run_queue;
#[cfg_attr(target_has_atomic = "8", path = "state_atomics.rs")]
#[cfg_attr(all(cortex_m, target_has_atomic = "8"), path = "state_atomics_arm.rs")]
#[cfg_attr(all(not(cortex_m), target_has_atomic = "8"), path = "state_atomics.rs")]
#[cfg_attr(not(target_has_atomic = "8"), path = "state_critical_section.rs")]
mod state;