Commit c5c55a7
committed
sched/core: Reorganize cgroup bandwidth control interface file reads
JIRA: https://issues.redhat.com/browse/RHEL-110301
commit 43e33f5
Author: Tejun Heo <tj@kernel.org>
Date: Fri Jun 13 15:23:29 2025 -1000
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
Signed-off-by: Phil Auld <pauld@redhat.com>1 parent ec2d2d2 commit c5c55a7
1 file changed
+40
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9414 | 9414 | | |
9415 | 9415 | | |
9416 | 9416 | | |
9417 | | - | |
| 9417 | + | |
9418 | 9418 | | |
9419 | 9419 | | |
9420 | 9420 | | |
| |||
9424 | 9424 | | |
9425 | 9425 | | |
9426 | 9426 | | |
9427 | | - | |
| 9427 | + | |
9428 | 9428 | | |
9429 | 9429 | | |
9430 | 9430 | | |
9431 | 9431 | | |
9432 | | - | |
| 9432 | + | |
9433 | 9433 | | |
9434 | 9434 | | |
9435 | 9435 | | |
9436 | 9436 | | |
9437 | 9437 | | |
9438 | 9438 | | |
9439 | 9439 | | |
9440 | | - | |
| 9440 | + | |
9441 | 9441 | | |
9442 | 9442 | | |
9443 | 9443 | | |
| |||
9624 | 9624 | | |
9625 | 9625 | | |
9626 | 9626 | | |
9627 | | - | |
9628 | | - | |
| 9627 | + | |
| 9628 | + | |
9629 | 9629 | | |
9630 | | - | |
| 9630 | + | |
| 9631 | + | |
| 9632 | + | |
| 9633 | + | |
| 9634 | + | |
| 9635 | + | |
9631 | 9636 | | |
9632 | 9637 | | |
9633 | | - | |
9634 | | - | |
| 9638 | + | |
| 9639 | + | |
9635 | 9640 | | |
9636 | | - | |
| 9641 | + | |
| 9642 | + | |
| 9643 | + | |
| 9644 | + | |
9637 | 9645 | | |
9638 | 9646 | | |
9639 | | - | |
9640 | | - | |
| 9647 | + | |
| 9648 | + | |
9641 | 9649 | | |
9642 | | - | |
| 9650 | + | |
| 9651 | + | |
| 9652 | + | |
| 9653 | + | |
| 9654 | + | |
| 9655 | + | |
| 9656 | + | |
| 9657 | + | |
| 9658 | + | |
| 9659 | + | |
| 9660 | + | |
| 9661 | + | |
| 9662 | + | |
9643 | 9663 | | |
9644 | 9664 | | |
9645 | 9665 | | |
| |||
9722 | 9742 | | |
9723 | 9743 | | |
9724 | 9744 | | |
9725 | | - | |
| 9745 | + | |
9726 | 9746 | | |
9727 | 9747 | | |
9728 | 9748 | | |
9729 | 9749 | | |
9730 | | - | |
| 9750 | + | |
9731 | 9751 | | |
9732 | 9752 | | |
9733 | 9753 | | |
9734 | 9754 | | |
9735 | | - | |
| 9755 | + | |
9736 | 9756 | | |
9737 | 9757 | | |
9738 | 9758 | | |
| |||
9954 | 9974 | | |
9955 | 9975 | | |
9956 | 9976 | | |
| 9977 | + | |
9957 | 9978 | | |
9958 | | - | |
| 9979 | + | |
| 9980 | + | |
9959 | 9981 | | |
9960 | 9982 | | |
9961 | 9983 | | |
| |||
10006 | 10028 | | |
10007 | 10029 | | |
10008 | 10030 | | |
10009 | | - | |
| 10031 | + | |
10010 | 10032 | | |
10011 | 10033 | | |
10012 | 10034 | | |
| |||
0 commit comments