mirror of
https://github.com/apache/nuttx.git
synced 2026-09-27 10:46:02 +08:00
sched/group: move task group into task_tcb_s to improve performance
move task group into task_tcb_s to avoid access allocator to improve performance for Task Termination, the time consumption will be reduced ~2us (Tricore TC397 300MHZ): 15.97(us) -> 13.55(us) Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
615c4bc6e9
commit
29e50ffa73
@@ -516,7 +516,7 @@ void nx_start(void)
|
||||
|
||||
/* Allocate the IDLE group */
|
||||
|
||||
DEBUGVERIFY(group_allocate(&g_idletcb[i], g_idletcb[i].cmn.flags));
|
||||
DEBUGVERIFY(group_initialize(&g_idletcb[i], g_idletcb[i].cmn.flags));
|
||||
g_idletcb[i].cmn.group->tg_info->ta_argv = &g_idleargv[i][0];
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
@@ -543,7 +543,7 @@ void nx_start(void)
|
||||
* of child status in the IDLE group.
|
||||
*/
|
||||
|
||||
group_initialize(&g_idletcb[i]);
|
||||
group_postinitialize(&g_idletcb[i]);
|
||||
g_idletcb[i].cmn.group->tg_flags = GROUP_FLAG_NOCLDWAIT |
|
||||
GROUP_FLAG_PRIVILEGED;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user