[PATCHSET tip/sched/core] sched/core: Reorganize bandwidth control interface handling
From: Tejun Heo
Date: Fri Jun 13 2025 - 21:24:01 EST
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