mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
arch: fix the sched parameter update when exiting
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
This commit is contained in:
@@ -68,7 +68,7 @@ void up_exit(int status)
|
||||
|
||||
/* Adjusts time slice for RR & SPORADIC cases */
|
||||
|
||||
nxsched_resume_scheduler(tcb);
|
||||
g_running_tasks[this_cpu()] = NULL;
|
||||
|
||||
/* Then switch contexts */
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ void up_exit(int status)
|
||||
|
||||
/* Adjusts time slice for SCHED_RR & SCHED_SPORADIC cases */
|
||||
|
||||
nxsched_resume_scheduler(tcb);
|
||||
g_running_tasks[this_cpu()] = NULL;
|
||||
|
||||
/* Then switch contexts */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user