jlaitine commented on code in PR #16673: URL: https://github.com/apache/nuttx/pull/16673#discussion_r2230664381
########## sched/sched/sched_suspend.c: ########## @@ -172,9 +176,13 @@ void nxsched_suspend(FAR struct tcb_s *tcb) { switch_needed = nxsched_remove_readytorun(tcb); - if (list_pendingtasks()->head) + if (!nxsched_islocked_tcb(rtcb) || switch_needed) Review Comment: sure can, this form was just due to an earlier review comment. I'll check switch needed first! -- 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