hujun260 commented on code in PR #16673: URL: https://github.com/apache/nuttx/pull/16673#discussion_r2227069672
########## sched/sched/sched_suspend.c: ########## @@ -131,7 +132,12 @@ void nxsched_suspend(FAR struct tcb_s *tcb) } else { +#ifdef CONFIG_SMP + int cpu = this_cpu(); + FAR struct tcb_s *rtcb = current_task(cpu); +#else FAR struct tcb_s *rtcb = this_task(); +#endif Review Comment: use this_task(); Many archs have percpu optimizations for this_task(). -- 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