arch: unify the scheduling information of task_exit

Replace all nxsched_suspend/resume_*** with nxsched_switch_context

Delete nxsched_resume_scheduler in up_exit and call it uniformly in task_exit

Co-authored-by: yinshengkai <yinshengkai@xiaomi.com>
Signed-off-by: guoshengyuan1 <guoshengyuan1@xiaomi.com>
This commit is contained in:
guoshengyuan1
2025-09-23 10:08:20 +08:00
committed by GUIDINGLI
parent 95efa6f7cf
commit fc15b8da8a
12 changed files with 29 additions and 21 deletions
-1
View File
@@ -71,7 +71,6 @@ void up_exit(int status)
* NOTE: the API also adjusts the global IRQ control for SMP
*/
nxsched_resume_scheduler(tcb);
g_running_tasks[this_cpu()] = tcb;
#ifdef CONFIG_ARCH_ADDRENV