Commit 41082c1
committed
sched: Make cpu_shares_read_u64() use tg_weight()
Move tg_weight() upward and make cpu_shares_read_u64() use it too. This
makes the weight retrieval shared between cgroup v1 and v2 paths and will be
used to implement cgroup support for sched_ext.
No functional changes.
Signed-off-by: Tejun Heo <tj@kernel.org>1 parent 859dc4e commit 41082c1
1 file changed
Lines changed: 6 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9194 | 9194 | | |
9195 | 9195 | | |
9196 | 9196 | | |
| 9197 | + | |
| 9198 | + | |
| 9199 | + | |
| 9200 | + | |
| 9201 | + | |
9197 | 9202 | | |
9198 | 9203 | | |
9199 | 9204 | | |
| |||
9205 | 9210 | | |
9206 | 9211 | | |
9207 | 9212 | | |
9208 | | - | |
9209 | | - | |
9210 | | - | |
| 9213 | + | |
9211 | 9214 | | |
9212 | 9215 | | |
9213 | 9216 | | |
| |||
9709 | 9712 | | |
9710 | 9713 | | |
9711 | 9714 | | |
9712 | | - | |
9713 | | - | |
9714 | | - | |
9715 | | - | |
9716 | | - | |
9717 | 9715 | | |
9718 | 9716 | | |
9719 | 9717 | | |
| |||
0 commit comments