sched/core: remove unneeded ptr movement in sched_init()
PATCH 1/1 sched/core: remove unneeded ptr movement in sched_init()
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 <[email protected]>
--- kernel/sched/core.c | 1 - 1 file changed, 1 deletion(-)
kernel/sched/core.c +0 -1
@@ -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 */ }
Signature · 1 line
2.27.0