]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched/core: Reorganize cgroup bandwidth control interface file reads
authorTejun Heo <tj@kernel.org>
Sat, 14 Jun 2025 01:23:29 +0000 (15:23 -1000)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 18 Jun 2025 11:59:57 +0000 (13:59 +0200)
commit43e33f53e25687ca870248d1939cfade0164426c
treea295629ccee9cd5f19421e8230339de2db5eab8a
parentde4c80c6963e130707ead16a544a387f811dbd87
sched/core: Reorganize cgroup bandwidth control interface file reads

- Update tg_get_cfs_*() to return u64 values. These are now used as the low
  level accessors to the fair's bandwidth configuration parameters.
  Translation to usecs takes place in these functions.

- Add tg_bandwidth() which reads all three bandwidth parameters using
  tg_get_cfs_*().

- Reimplement cgroup interface read functions using tg_bandwidth(). Drop cfs
  from the function names.

This is to prepare for adding bandwidth control support to sched_ext.
tg_bandwidth() will be used as the muxing point similar to tg_weight(). No
functional changes.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250614012346.2358261-4-tj@kernel.org
kernel/sched/core.c