[PATCH] sched/core: remove unneeded ptr movement in sched_init()

From: Miaohe Lin
Date: Sat Jun 03 2023 - 03:33:36 EST


There's no need to move the ptr forward after root_task_group.rt_rq is
set as ptr is not used since then.

Signed-off-by: Miaohe Lin <linmiaohe@xxxxxxxxxx>
---
kernel/sched/core.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 239fa7a80c0f..bfc655b82bd5 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -9937,7 +9937,6 @@ void __init sched_init(void)
ptr += nr_cpu_ids * sizeof(void **);

root_task_group.rt_rq = (struct rt_rq **)ptr;
- ptr += nr_cpu_ids * sizeof(void **);

#endif /* CONFIG_RT_GROUP_SCHED */
}
--
2.27.0