1
0
Fork 0
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:
xuxingliang 2024-06-28 16:50:59 +08:00 committed by Xiang Xiao
parent 5a31d52fd8
commit c6d712df0e
18 changed files with 2 additions and 34 deletions

View file

@ -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();

View file

@ -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);

View file

@ -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();

View file

@ -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();

View file

@ -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();

View file

@ -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();

View file

@ -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();

View file

@ -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();

View file

@ -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();

View file

@ -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();

View file

@ -62,8 +62,6 @@ void up_exit(int status)
(void)enter_critical_section();
nxsched_dumponexit();
/* Update scheduler parameters */
nxsched_suspend_scheduler(tcb);

View file

@ -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();

View file

@ -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();

View file

@ -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();

View file

@ -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();

View file

@ -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();

View file

@ -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();

View file

@ -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.
*/