diff --git a/include/nuttx/spinlock.h b/include/nuttx/spinlock.h index bd15818d6a7e7..4081f43b99e3d 100644 --- a/include/nuttx/spinlock.h +++ b/include/nuttx/spinlock.h @@ -529,6 +529,7 @@ irqstate_t spin_lock_irqsave_wo_note(FAR volatile spinlock_t *lock) { irqstate_t ret; ret = up_irq_save(); + sched_lock_wo_note(); if (NULL == lock) { @@ -714,6 +715,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))