This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit c479f338f927c0beea506372ce8e8625177b3722 Author: ouyangxiangzhen <[email protected]> AuthorDate: Mon Sep 21 10:48:58 2026 +0800 arch/ceva: remove redundant scheduler calls in _exit nxtask_exit() already calls nxsched_suspend_scheduler() internally, so the explicit suspend call in _exit() is redundant. The resume call is also unnecessary: nxsched_remove_self() activates the idle task via nxsched_switch_running(), and the new task's resume is handled by nxsched_switch() in the context-switch path (same as RISC-V up_exit). Remove both calls to match the pattern used by other architectures. Signed-off-by: ouyangxiangzhen <[email protected]> --- arch/ceva/src/common/ceva_exit.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/arch/ceva/src/common/ceva_exit.c b/arch/ceva/src/common/ceva_exit.c index 709eb6f3038..d334ff3df06 100644 --- a/arch/ceva/src/common/ceva_exit.c +++ b/arch/ceva/src/common/ceva_exit.c @@ -62,11 +62,9 @@ void up_exit(int status) sinfo("TCB=%p exiting\n", tcb); - /* Update scheduler parameters */ - - sched_suspend_scheduler(tcb); - - /* Destroy the task at the head of the ready to run list. */ + /* Destroy the task at the head of the ready to run list. This + * internally calls nxsched_suspend_scheduler() for the exiting task. + */ nxtask_exit(); @@ -76,10 +74,6 @@ void up_exit(int status) tcb = this_task(); - /* Reset scheduler parameters */ - - sched_resume_scheduler(tcb); - g_running_tasks[this_cpu()] = tcb; /* Then switch contexts */
