diff options
Diffstat (limited to 'embassy-executor/src/raw/state_atomics_arm.rs')
| -rw-r--r-- | embassy-executor/src/raw/state_atomics_arm.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/embassy-executor/src/raw/state_atomics_arm.rs b/embassy-executor/src/raw/state_atomics_arm.rs index f6f2e8f08..7a152e8c0 100644 --- a/embassy-executor/src/raw/state_atomics_arm.rs +++ b/embassy-executor/src/raw/state_atomics_arm.rs | |||
| @@ -1,13 +1,11 @@ | |||
| 1 | use core::arch::asm; | 1 | use core::arch::asm; |
| 2 | use core::sync::atomic::{compiler_fence, AtomicBool, AtomicU32, Ordering}; | 2 | use core::sync::atomic::{compiler_fence, AtomicBool, AtomicU32, Ordering}; |
| 3 | 3 | ||
| 4 | #[cfg(feature = "integrated-timers")] | ||
| 5 | use super::timer_queue::TimerEnqueueOperation; | 4 | use super::timer_queue::TimerEnqueueOperation; |
| 6 | 5 | ||
| 7 | // Must be kept in sync with the layout of `State`! | 6 | // Must be kept in sync with the layout of `State`! |
| 8 | pub(crate) const STATE_SPAWNED: u32 = 1 << 0; | 7 | pub(crate) const STATE_SPAWNED: u32 = 1 << 0; |
| 9 | pub(crate) const STATE_RUN_QUEUED: u32 = 1 << 8; | 8 | pub(crate) const STATE_RUN_QUEUED: u32 = 1 << 8; |
| 10 | #[cfg(feature = "integrated-timers")] | ||
| 11 | pub(crate) const STATE_TIMER_QUEUED: u32 = 1 << 16; | 9 | pub(crate) const STATE_TIMER_QUEUED: u32 = 1 << 16; |
| 12 | 10 | ||
| 13 | #[repr(C, align(4))] | 11 | #[repr(C, align(4))] |
| @@ -93,7 +91,6 @@ impl State { | |||
| 93 | } | 91 | } |
| 94 | 92 | ||
| 95 | /// Mark the task as timer-queued. Return whether it can be enqueued. | 93 | /// Mark the task as timer-queued. Return whether it can be enqueued. |
| 96 | #[cfg(feature = "integrated-timers")] | ||
| 97 | #[inline(always)] | 94 | #[inline(always)] |
| 98 | pub fn timer_enqueue(&self) -> TimerEnqueueOperation { | 95 | pub fn timer_enqueue(&self) -> TimerEnqueueOperation { |
| 99 | if self | 96 | if self |
| @@ -116,7 +113,6 @@ impl State { | |||
| 116 | } | 113 | } |
| 117 | 114 | ||
| 118 | /// Unmark the task as timer-queued. | 115 | /// Unmark the task as timer-queued. |
| 119 | #[cfg(feature = "integrated-timers")] | ||
| 120 | #[inline(always)] | 116 | #[inline(always)] |
| 121 | pub fn timer_dequeue(&self) { | 117 | pub fn timer_dequeue(&self) { |
| 122 | self.timer_queued.store(false, Ordering::Relaxed); | 118 | self.timer_queued.store(false, Ordering::Relaxed); |
