Commit 8b936fc
sched/fair: Use existing helper functions to access ->avg_rt and ->avg_dl
There are helper functions called cpu_util_dl() and cpu_util_rt() which give
the average utilization of DL and RT respectively. But there are a few
places in code where access to these variables is open-coded.
Instead use the helper function so that code becomes simpler and easier to
maintain later on.
No functional changes intended.
Signed-off-by: Shrikanth Hegde <sshegde@linux.vnet.ibm.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lore.kernel.org/r/20240101154624.100981-2-sshegde@linux.vnet.ibm.com1 parent 8cec3dd commit 8b936fc
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9237 | 9237 | | |
9238 | 9238 | | |
9239 | 9239 | | |
9240 | | - | |
| 9240 | + | |
9241 | 9241 | | |
9242 | 9242 | | |
9243 | | - | |
| 9243 | + | |
9244 | 9244 | | |
9245 | 9245 | | |
9246 | 9246 | | |
| |||
9506 | 9506 | | |
9507 | 9507 | | |
9508 | 9508 | | |
9509 | | - | |
9510 | | - | |
| 9509 | + | |
| 9510 | + | |
9511 | 9511 | | |
9512 | 9512 | | |
9513 | 9513 | | |
| |||
0 commit comments