Commit 43e33f5
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.org1 parent de4c80c commit 43e33f5
1 file changed
Lines changed: 40 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9404 | 9404 | | |
9405 | 9405 | | |
9406 | 9406 | | |
9407 | | - | |
| 9407 | + | |
9408 | 9408 | | |
9409 | 9409 | | |
9410 | 9410 | | |
| |||
9414 | 9414 | | |
9415 | 9415 | | |
9416 | 9416 | | |
9417 | | - | |
| 9417 | + | |
9418 | 9418 | | |
9419 | 9419 | | |
9420 | 9420 | | |
9421 | 9421 | | |
9422 | | - | |
| 9422 | + | |
9423 | 9423 | | |
9424 | 9424 | | |
9425 | 9425 | | |
9426 | 9426 | | |
9427 | 9427 | | |
9428 | 9428 | | |
9429 | 9429 | | |
9430 | | - | |
| 9430 | + | |
9431 | 9431 | | |
9432 | 9432 | | |
9433 | 9433 | | |
| |||
9614 | 9614 | | |
9615 | 9615 | | |
9616 | 9616 | | |
9617 | | - | |
9618 | | - | |
| 9617 | + | |
| 9618 | + | |
9619 | 9619 | | |
9620 | | - | |
| 9620 | + | |
| 9621 | + | |
| 9622 | + | |
| 9623 | + | |
| 9624 | + | |
| 9625 | + | |
9621 | 9626 | | |
9622 | 9627 | | |
9623 | | - | |
9624 | | - | |
| 9628 | + | |
| 9629 | + | |
9625 | 9630 | | |
9626 | | - | |
| 9631 | + | |
| 9632 | + | |
| 9633 | + | |
| 9634 | + | |
9627 | 9635 | | |
9628 | 9636 | | |
9629 | | - | |
9630 | | - | |
| 9637 | + | |
| 9638 | + | |
9631 | 9639 | | |
9632 | | - | |
| 9640 | + | |
| 9641 | + | |
| 9642 | + | |
| 9643 | + | |
| 9644 | + | |
| 9645 | + | |
| 9646 | + | |
| 9647 | + | |
| 9648 | + | |
| 9649 | + | |
| 9650 | + | |
| 9651 | + | |
| 9652 | + | |
9633 | 9653 | | |
9634 | 9654 | | |
9635 | 9655 | | |
| |||
9712 | 9732 | | |
9713 | 9733 | | |
9714 | 9734 | | |
9715 | | - | |
| 9735 | + | |
9716 | 9736 | | |
9717 | 9737 | | |
9718 | 9738 | | |
9719 | 9739 | | |
9720 | | - | |
| 9740 | + | |
9721 | 9741 | | |
9722 | 9742 | | |
9723 | 9743 | | |
9724 | 9744 | | |
9725 | | - | |
| 9745 | + | |
9726 | 9746 | | |
9727 | 9747 | | |
9728 | 9748 | | |
| |||
9944 | 9964 | | |
9945 | 9965 | | |
9946 | 9966 | | |
| 9967 | + | |
9947 | 9968 | | |
9948 | | - | |
| 9969 | + | |
| 9970 | + | |
9949 | 9971 | | |
9950 | 9972 | | |
9951 | 9973 | | |
| |||
9996 | 10018 | | |
9997 | 10019 | | |
9998 | 10020 | | |
9999 | | - | |
| 10021 | + | |
10000 | 10022 | | |
10001 | 10023 | | |
10002 | 10024 | | |
| |||
0 commit comments