xiaoxiang781216 commented on code in PR #13341:
URL: https://github.com/apache/nuttx/pull/13341#discussion_r1752154398


##########
sched/sched/sched_addreadytorun.c:
##########
@@ -152,30 +152,14 @@ bool nxsched_add_readytorun(FAR struct tcb_s *btcb)
 bool nxsched_add_readytorun(FAR struct tcb_s *btcb)
 {
   FAR struct tcb_s *rtcb;
+  FAR struct tcb_s *headtcb;
   FAR dq_queue_t *tasklist;
   bool doswitch;
   int task_state;
   int cpu;
   int me;
 
-  /* Check if the blocked TCB is locked to this CPU */
-
-  if ((btcb->flags & TCB_FLAG_CPU_LOCKED) != 0)

Review Comment:
   the check in sched_setaffinity will be upstreamed soon.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to