Don't check context if only thread-mode is enabled
This commit is contained in:
parent
07c3600127
commit
e4f3979ec8
1 changed files with 2 additions and 1 deletions
|
@ -10,7 +10,8 @@ fn __pender(context: *mut ()) {
|
|||
let context = context as usize;
|
||||
|
||||
#[cfg(feature = "executor-thread")]
|
||||
if context == THREAD_PENDER {
|
||||
// Try to make Rust optimize the branching away if we only use thread mode.
|
||||
if !cfg!(feature = "executor-interrupt") || context == THREAD_PENDER {
|
||||
core::arch::asm!("sev");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue