hujun260 commented on code in PR #16673: URL: https://github.com/apache/nuttx/pull/16673#discussion_r2283928174
########## sched/sched/sched.h: ########## @@ -549,7 +586,9 @@ static inline_function int nxsched_select_cpu(cpu_set_t affinity) DEBUGASSERT(rtcb->sched_priority == 0); return i; } - else if (rtcb->sched_priority <= minprio) + else if (rtcb->sched_priority <= minprio && + !nxsched_islocked_tcb(rtcb) && + (rtcb->flags & TCB_FLAG_CPU_LOCKED) == 0) Review Comment: remove (rtcb->flags & TCB_FLAG_CPU_LOCKED) == 0 -- 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