mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCHSET tip/sched/core] sched/core: Reorganize bandwidth control interface handling
@ 2025-06-14  1:23 Tejun Heo
  2025-06-14  1:23 ` [PATCH 1/4] sched/fair: Move max_cfs_quota_period decl and default_cfs_period() def from fair.c to sched.h Tejun Heo
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Tejun Heo @ 2025-06-14  1:23 UTC (permalink / raw)
  To: mingo, peterz; +Cc: linux-kernel, sched-ext, void, arighi, changwoo

Reorganize cgroup bandwidth control interface handling in preparation of
sched_ext support.

- Implement tg_bandwidth() and tg_set_bandwidth() to centralize parameter
  reads and updates.

- Cleanly delineate time unit boundary - durations are in usecs from the
  interface files upto tg[_set]_bandwidth(). The fair functions that are
  called by tg[_set]_bandwidth() map them to nsecs.

This reorganization will allow sched_ext to plug into tg[_set]_bandwidth()
the same way it plugs into tg_weight(). No functional changes intended.

 0001-sched-fair-Move-max_cfs_quota_period-decl-and-defaul.patch
 0002-sched-core-Relocate-tg_get_cfs_-and-cpu_cfs_-_read_.patch
 0003-sched-core-Reorganize-cgroup-bandwidth-control-inter.patch
 0004-sched-core-Reorganize-cgroup-bandwidth-control-inter.patch

The patchset is on top of tip/sched/core (dabe1be4e84c ("sched/smp: Use the
SMP version of double_rq_clock_clear_update()")) and also available in the
following git branch:

 git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext.git reorg-bandwidth-control

diffstat follows. Thanks.

 kernel/sched/core.c  |  311 ++++++++++++++++++++++++++++++++++++++++-------------------------------------
 kernel/sched/fair.c  |   15 ---
 kernel/sched/sched.h |   13 +++
 3 files changed, 178 insertions(+), 161 deletions(-)

--
tejun


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

end of thread, other threads:[~2025-06-20  9:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-14  1:23 [PATCHSET tip/sched/core] sched/core: Reorganize bandwidth control interface handling Tejun Heo
2025-06-14  1:23 ` [PATCH 1/4] sched/fair: Move max_cfs_quota_period decl and default_cfs_period() def from fair.c to sched.h Tejun Heo
2025-06-20  9:49   ` [tip: sched/core] " tip-bot2 for Tejun Heo
2025-06-14  1:23 ` [PATCH 2/4] sched/core: Relocate tg_get_cfs_*() and cpu_cfs_*_read_*() Tejun Heo
2025-06-20  9:49   ` [tip: sched/core] " tip-bot2 for Tejun Heo
2025-06-14  1:23 ` [PATCH 3/4] sched/core: Reorganize cgroup bandwidth control interface file reads Tejun Heo
2025-06-20  9:49   ` [tip: sched/core] " tip-bot2 for Tejun Heo
2025-06-14  1:23 ` [PATCH 4/4] sched/core: Reorganize cgroup bandwidth control interface file writes Tejun Heo
2025-06-20  9:49   ` [tip: sched/core] " tip-bot2 for Tejun Heo

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

all inboxes | Powered by JetHome®