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:
chao an
2024-03-10 11:45:46 -03:00
committed by Alan Carvalho de Assis
parent 615c4bc6e9
commit 29e50ffa73
11 changed files with 72 additions and 41 deletions
+2 -2
View File
@@ -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;
}