lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Sun,  7 Apr 2024 10:43:14 +0200
From: Ingo Molnar <mingo@...nel.org>
To: linux-kernel@...r.kernel.org
Cc: Peter Zijlstra <peterz@...radead.org>,
	Dietmar Eggemann <dietmar.eggemann@....com>,
	Linus Torvalds <torvalds@...ux-foundation.org>,
	Shrikanth Hegde <sshegde@...ux.ibm.com>,
	Valentin Schneider <vschneid@...hat.com>,
	Vincent Guittot <vincent.guittot@...aro.org>
Subject: [PATCH 0/5] sched: Split out kernel/sched/fair_balance.c, numa_balancing.c and syscalls.c, plus other updates

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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ