Skip to contentSkip to conversation

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

PATCH New Miaohe Lin 1 participant 1 message Jun 3, 2023 Scheduler

lore
Share & tools
lore

Miaohe Lin

author
#0 lore raw

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.

---
 kernel/sched/core.c | 1 -
 1 file changed, 1 deletion(-)
kernel/sched/core.c +0 -1
index 239fa7a80c0f..bfc655b82bd5 100644
@@ -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