We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 118f827 commit 18d33b6Copy full SHA for 18d33b6
sched/wqueue/kwork_queue.c
@@ -68,9 +68,8 @@ static void work_timer_expiry(wdparm_t arg)
68
{
69
FAR struct work_s *work = (FAR struct work_s *)arg;
70
71
- DEBUGASSERT(up_interrupt_context());
72
-
73
irqstate_t flags = spin_lock_irqsave(&work->wq->lock);
+ sched_lock();
74
75
/* We have being canceled */
76
@@ -80,6 +79,7 @@ static void work_timer_expiry(wdparm_t arg)
80
79
}
81
82
spin_unlock_irqrestore(&work->wq->lock, flags);
+ sched_unlock();
83
84
85
static bool work_is_canceling(FAR struct kworker_s *kworkers, int nthreads,
0 commit comments