From 4c1c05164a02436522dd6dd5a35878c9f40df043 Mon Sep 17 00:00:00 2001 From: hujun5 Date: Fri, 11 Oct 2024 20:58:37 +0800 Subject: [PATCH] sched/signal: There is no need to use sched_[un]lock Signed-off-by: hujun5 --- sched/signal/sig_dispatch.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sched/signal/sig_dispatch.c b/sched/signal/sig_dispatch.c index d726d5c3ae486..35cbc7409dd10 100644 --- a/sched/signal/sig_dispatch.c +++ b/sched/signal/sig_dispatch.c @@ -115,7 +115,6 @@ static int nxsig_queue_action(FAR struct tcb_s *stcb, siginfo_t *info) irqstate_t flags; int ret = OK; - sched_lock(); DEBUGASSERT(stcb != NULL && stcb->group != NULL); /* Find the group sigaction associated with this signal */ @@ -203,7 +202,6 @@ static int nxsig_queue_action(FAR struct tcb_s *stcb, siginfo_t *info) } } - sched_unlock(); return ret; }