Skip to content

Commit a1eab4d

Browse files
committed
sched_ext, sched/core: Fix build failure when !FAIR_GROUP_SCHED && EXT_GROUP_SCHED
While collecting SCX related fields in struct task_group into struct scx_task_group, 6e6558a ("sched_ext, sched/core: Factor out struct scx_task_group") forgot update tg->scx_weight usage in tg_weight(), which leads to build failure when CONFIG_FAIR_GROUP_SCHED is disabled but CONFIG_EXT_GROUP_SCHED is enabled. Fix it. Fixes: 6e6558a ("sched_ext, sched/core: Factor out struct scx_task_group") Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Tested-by: Andrea Righi <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent 0b47b6c commit a1eab4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/sched/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9551,7 +9551,7 @@ static unsigned long tg_weight(struct task_group *tg)
95519551
#ifdef CONFIG_FAIR_GROUP_SCHED
95529552
return scale_load_down(tg->shares);
95539553
#else
9554-
return sched_weight_from_cgroup(tg->scx_weight);
9554+
return sched_weight_from_cgroup(tg->scx.weight);
95559555
#endif
95569556
}
95579557

0 commit comments

Comments
 (0)