diff --git a/sched/wqueue/kwork_notifier.c b/sched/wqueue/kwork_notifier.c index 6160bbd0b8adb..813b46c0a55a8 100644 --- a/sched/wqueue/kwork_notifier.c +++ b/sched/wqueue/kwork_notifier.c @@ -404,8 +404,8 @@ void work_notifier_signal(enum work_evtype_e evtype, } } - sched_unlock(); spin_unlock_irqrestore(&g_notifier_lock, flags); + sched_unlock(); } #endif /* CONFIG_WQUEUE_NOTIFIER */