Skip to content

Commit 337d1b3

Browse files
arighihtejun
authored andcommitted
sched_ext: Move built-in idle CPU selection policy to a separate file
As ext.c is becoming quite large, move the idle CPU selection policy to separate files (ext_idle.c / ext_idle.h) for better code readability. Moreover, group together all the idle CPU selection kfunc's to the same btf_kfunc_id_set block. No functional changes, this is purely code reorganization. Suggested-by: Yury Norov <[email protected]> Signed-off-by: Andrea Righi <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent 1626e5e commit 337d1b3

File tree

5 files changed

+808
-726
lines changed

5 files changed

+808
-726
lines changed

MAINTAINERS

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21006,8 +21006,7 @@ S: Maintained
2100621006
W: https://github.com/sched-ext/scx
2100721007
T: git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext.git
2100821008
F: include/linux/sched/ext.h
21009-
F: kernel/sched/ext.h
21010-
F: kernel/sched/ext.c
21009+
F: kernel/sched/ext*
2101121010
F: tools/sched_ext/
2101221011
F: tools/testing/selftests/sched_ext
2101321012

kernel/sched/build_policy.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161

6262
#ifdef CONFIG_SCHED_CLASS_EXT
6363
# include "ext.c"
64+
# include "ext_idle.c"
6465
#endif
6566

6667
#include "syscalls.c"

0 commit comments

Comments
 (0)