forked from nuttx/nuttx-update
sched: move nxsched_dumponexit() to task_exithook
So the tcb->group still exists to dump files. Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
This commit is contained in:
parent
5a31d52fd8
commit
c6d712df0e
18 changed files with 2 additions and 34 deletions
|
@ -62,8 +62,6 @@ void up_exit(int status)
|
|||
|
||||
enter_critical_section();
|
||||
|
||||
nxsched_dumponexit();
|
||||
|
||||
/* Destroy the task at the head of the ready to run list. */
|
||||
|
||||
nxtask_exit();
|
||||
|
|
|
@ -66,8 +66,6 @@ void up_exit(int status)
|
|||
|
||||
enter_critical_section();
|
||||
|
||||
nxsched_dumponexit();
|
||||
|
||||
/* Destroy the task at the head of the ready to run list. */
|
||||
#ifdef CONFIG_ARCH_FPU
|
||||
arm64_destory_fpu(tcb);
|
||||
|
|
|
@ -61,8 +61,6 @@ void up_exit(int status)
|
|||
|
||||
enter_critical_section();
|
||||
|
||||
nxsched_dumponexit();
|
||||
|
||||
/* Destroy the task at the head of the ready to run list. */
|
||||
|
||||
nxtask_exit();
|
||||
|
|
|
@ -60,8 +60,6 @@ void up_exit(int status)
|
|||
|
||||
enter_critical_section();
|
||||
|
||||
nxsched_dumponexit();
|
||||
|
||||
/* Destroy the task at the head of the ready to run list. */
|
||||
|
||||
nxtask_exit();
|
||||
|
|
|
@ -62,8 +62,6 @@ void up_exit(int status)
|
|||
|
||||
enter_critical_section();
|
||||
|
||||
nxsched_dumponexit();
|
||||
|
||||
/* Destroy the task at the head of the ready to run list. */
|
||||
|
||||
nxtask_exit();
|
||||
|
|
|
@ -62,8 +62,6 @@ void up_exit(int status)
|
|||
|
||||
enter_critical_section();
|
||||
|
||||
nxsched_dumponexit();
|
||||
|
||||
/* Destroy the task at the head of the ready to run list. */
|
||||
|
||||
nxtask_exit();
|
||||
|
|
|
@ -62,8 +62,6 @@ void up_exit(int status)
|
|||
|
||||
enter_critical_section();
|
||||
|
||||
nxsched_dumponexit();
|
||||
|
||||
/* Destroy the task at the head of the ready to run list. */
|
||||
|
||||
nxtask_exit();
|
||||
|
|
|
@ -62,8 +62,6 @@ void up_exit(int status)
|
|||
|
||||
enter_critical_section();
|
||||
|
||||
nxsched_dumponexit();
|
||||
|
||||
/* Destroy the task at the head of the ready to run list. */
|
||||
|
||||
nxtask_exit();
|
||||
|
|
|
@ -60,8 +60,6 @@ void up_exit(int status)
|
|||
|
||||
enter_critical_section();
|
||||
|
||||
nxsched_dumponexit();
|
||||
|
||||
/* Destroy the task at the head of the ready to run list. */
|
||||
|
||||
nxtask_exit();
|
||||
|
|
|
@ -62,8 +62,6 @@ void up_exit(int status)
|
|||
|
||||
enter_critical_section();
|
||||
|
||||
nxsched_dumponexit();
|
||||
|
||||
/* Destroy the task at the head of the ready to run list. */
|
||||
|
||||
nxtask_exit();
|
||||
|
|
|
@ -62,8 +62,6 @@ void up_exit(int status)
|
|||
|
||||
(void)enter_critical_section();
|
||||
|
||||
nxsched_dumponexit();
|
||||
|
||||
/* Update scheduler parameters */
|
||||
|
||||
nxsched_suspend_scheduler(tcb);
|
||||
|
|
|
@ -62,8 +62,6 @@ void up_exit(int status)
|
|||
|
||||
enter_critical_section();
|
||||
|
||||
nxsched_dumponexit();
|
||||
|
||||
/* Destroy the task at the head of the ready to run list. */
|
||||
|
||||
nxtask_exit();
|
||||
|
|
|
@ -61,8 +61,6 @@ void up_exit(int status)
|
|||
|
||||
enter_critical_section();
|
||||
|
||||
nxsched_dumponexit();
|
||||
|
||||
/* Destroy the task at the head of the ready to run list. */
|
||||
|
||||
nxtask_exit();
|
||||
|
|
|
@ -60,8 +60,6 @@ void up_exit(int status)
|
|||
|
||||
enter_critical_section();
|
||||
|
||||
nxsched_dumponexit();
|
||||
|
||||
/* Destroy the task at the head of the ready to run list. */
|
||||
|
||||
nxtask_exit();
|
||||
|
|
|
@ -62,8 +62,6 @@ void up_exit(int status)
|
|||
|
||||
enter_critical_section();
|
||||
|
||||
nxsched_dumponexit();
|
||||
|
||||
/* Destroy the task at the head of the ready to run list. */
|
||||
|
||||
nxtask_exit();
|
||||
|
|
|
@ -60,8 +60,6 @@ void up_exit(int status)
|
|||
|
||||
enter_critical_section();
|
||||
|
||||
nxsched_dumponexit();
|
||||
|
||||
/* Destroy the task at the head of the ready to run list. */
|
||||
|
||||
nxtask_exit();
|
||||
|
|
|
@ -62,8 +62,6 @@ void up_exit(int status)
|
|||
|
||||
enter_critical_section();
|
||||
|
||||
nxsched_dumponexit();
|
||||
|
||||
/* Destroy the task at the head of the ready to run list. */
|
||||
|
||||
nxtask_exit();
|
||||
|
|
|
@ -432,6 +432,8 @@ void nxtask_exithook(FAR struct tcb_s *tcb, int status)
|
|||
return;
|
||||
}
|
||||
|
||||
nxsched_dumponexit();
|
||||
|
||||
/* If the task was terminated by another task, it may be in an unknown
|
||||
* state. Make some feeble effort to recover the state.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue