[PATCH 0/5] sched: Split out kernel/sched/fair_balance.c, numa_balancing.c and syscalls.c, plus other updates

From: Ingo Molnar
Date: Sun Apr 07 2024 - 04:43:53 EST


kernel/sched/core.c and fair.c have become a hodgepodge of scheduler
functionality that obscures core scheduling and fair-balancing
class scheduling functionality quite a bit.

Improve it all a bit by splitting syscall.c out of core.c, and
fair_balance.c and numa_balancing.c out of fair.c:

# of Lines of code
BEFORE => AFTER
---------------
kernel/sched/sched.h 3493 => 3891
kernel/sched/core.c 12067 => 10308
kernel/sched/syscalls.c - => 1691

kernel/sched/fair.c 13295 => 5707
kernel/sched/fair_balance.c - => 5103
kernel/sched/numa_balancing.c - => 2277

total 49650 => 49765

This is only a first-approximation split.

Thanks,

Ingo

=================>

Ingo Molnar (5):
sched: Split out kernel/sched/syscalls.c from kernel/sched/core.c
sched: Split out kernel/sched/fair_balance.c from kernel/sched/fair.c
sched: Split out kernel/sched/numa_balancing.c from kernel/sched/fair.c
sched/fair: Remove NEXT_BUDDY
sched/fair: Rename set_next_buddy() to set_next_pick()

kernel/sched/Makefile | 3 +
kernel/sched/core.c | 1951 +--------
kernel/sched/fair.c | 13184 +++++++++++++-----------------------------------------------
kernel/sched/fair_balance.c | 5103 +++++++++++++++++++++++
kernel/sched/features.h | 7 -
kernel/sched/numa_balancing.c | 2277 +++++++++++
kernel/sched/sched.h | 400 +-
kernel/sched/syscalls.c | 1691 ++++++++
8 files changed, 12367 insertions(+), 12249 deletions(-)
create mode 100644 kernel/sched/fair_balance.c
create mode 100644 kernel/sched/numa_balancing.c
create mode 100644 kernel/sched/syscalls.c

--
2.40.1