aboutsummaryrefslogtreecommitdiff
path: root/kernel/profile.c
diff options
context:
space:
mode:
authorGravatar Shrikanth Hegde <sshegde@linux.vnet.ibm.com> 2024-01-01 21:16:23 +0530
committerGravatar Ingo Molnar <mingo@kernel.org> 2024-02-28 15:11:14 +0100
commit8b936fc1d84f7d70009ea34d66bbf6c54c09fae7 (patch)
tree80a68a084a309e19fdfa7192912732af786a69b8 /kernel/profile.c
parentsched/core: Simplify code by removing duplicate #ifdefs (diff)
downloadlinux-8b936fc1d84f7d70009ea34d66bbf6c54c09fae7.tar.gz
linux-8b936fc1d84f7d70009ea34d66bbf6c54c09fae7.tar.bz2
linux-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/profile.c')
0 files changed, 0 insertions, 0 deletions