diff options
author | 2025-06-13 15:23:29 -1000 | |
---|---|---|
committer | 2025-06-18 13:59:57 +0200 | |
commit | 43e33f53e25687ca870248d1939cfade0164426c (patch) | |
tree | a295629ccee9cd5f19421e8230339de2db5eab8a /tools/perf/scripts/python | |
parent | sched/core: Relocate tg_get_cfs_*() and cpu_cfs_*_read_*() (diff) | |
download | wireguard-linux-43e33f53e25687ca870248d1939cfade0164426c.tar.xz wireguard-linux-43e33f53e25687ca870248d1939cfade0164426c.zip |
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
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions