public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] sched: Split out kernel/sched/fair_balance.c, numa_balancing.c and syscalls.c, plus other updates
@ 2024-04-07  8:43 Ingo Molnar
  2024-04-07  8:43 ` [PATCH 1/5] sched: Split out kernel/sched/syscalls.c from kernel/sched/core.c Ingo Molnar
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Ingo Molnar @ 2024-04-07  8:43 UTC (permalink / raw)
  To: linux-kernel
  Cc: Peter Zijlstra, Dietmar Eggemann, Linus Torvalds, Shrikanth Hegde,
	Valentin Schneider, Vincent Guittot

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


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2024-05-27 12:05 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-07  8:43 [PATCH 0/5] sched: Split out kernel/sched/fair_balance.c, numa_balancing.c and syscalls.c, plus other updates Ingo Molnar
2024-04-07  8:43 ` [PATCH 1/5] sched: Split out kernel/sched/syscalls.c from kernel/sched/core.c Ingo Molnar
2024-04-07 19:09   ` kernel test robot
2024-05-27 12:05   ` [tip: sched/core] sched/syscalls: " tip-bot2 for Ingo Molnar
2024-04-07  8:43 ` [PATCH 2/5] sched: Split out kernel/sched/fair_balance.c from kernel/sched/fair.c Ingo Molnar
2024-04-07 10:04   ` kernel test robot
2024-04-07 10:15   ` kernel test robot
2024-04-07 20:21   ` kernel test robot
2024-04-07  8:43 ` [PATCH 3/5] sched: Split out kernel/sched/numa_balancing.c " Ingo Molnar
2024-04-07 18:49   ` kernel test robot
2024-04-07  8:43 ` [PATCH 4/5] sched/fair: Remove NEXT_BUDDY Ingo Molnar
2024-04-07  8:43 ` [PATCH 5/5] sched/fair: Rename set_next_buddy() to set_next_pick() Ingo Molnar
2024-04-08  9:16   ` Peter Zijlstra
2024-04-09  8:32     ` Ingo Molnar
2024-04-09  9:27       ` Peter Zijlstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox