diff options
author | Shrikanth Hegde <sshegde@linux.vnet.ibm.com> | 2024-01-01 21:16:23 +0530 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2024-02-28 15:11:14 +0100 |
commit | 8b936fc1d84f7d70009ea34d66bbf6c54c09fae7 (patch) | |
tree | 80a68a084a309e19fdfa7192912732af786a69b8 /kernel/regset.c | |
parent | 8cec3dd9e5930c82c6bd0af3fdb3a36bcd428310 (diff) | |
download | lwn-8b936fc1d84f7d70009ea34d66bbf6c54c09fae7.tar.gz lwn-8b936fc1d84f7d70009ea34d66bbf6c54c09fae7.zip |
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.com
Diffstat (limited to 'kernel/regset.c')
0 files changed, 0 insertions, 0 deletions