hujun260 commented on code in PR #16673:
URL: https://github.com/apache/nuttx/pull/16673#discussion_r2193904597


##########
sched/sched/sched_setpriority.c:
##########
@@ -191,10 +133,11 @@ static inline void nxsched_running_setpriority(FAR struct 
tcb_s *tcb,
     {
       FAR struct tcb_s *rtcb = this_task();
 
-      if (nxsched_islocked_tcb(rtcb))
+#ifndef CONFIG_SMP
+      if (nxsched_islocked_tcb(tcb))

Review Comment:
   What if it is SMP and the current cpu is sched_locked?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to