diff --git a/include/nuttx/spinlock.h b/include/nuttx/spinlock.h index 9d4d56fd6e9c7..668442e8b8e40 100644 --- a/include/nuttx/spinlock.h +++ b/include/nuttx/spinlock.h @@ -592,6 +592,7 @@ irqstate_t spin_lock_irqsave_wo_note(FAR volatile spinlock_t *lock) while (!spin_trylock_irqsave_wo_note(lock, ret)); } + sched_lock_wo_note(); return ret; } #else @@ -721,6 +722,7 @@ void spin_unlock_irqrestore_wo_note(FAR volatile spinlock_t *lock, } up_irq_restore(flags); + sched_unlock_wo_note(); } #else # define spin_unlock_irqrestore_wo_note(l, f) ((void)(l), up_irq_restore(f))