sched/fair: Use existing helper functions to access ->avg_rt and ->avg_dl
authorShrikanth Hegde <sshegde@linux.vnet.ibm.com>
Mon, 1 Jan 2024 15:46:23 +0000 (21:16 +0530)
committerIngo Molnar <mingo@kernel.org>
Wed, 28 Feb 2024 14:11:14 +0000 (15:11 +0100)
commit8b936fc1d84f7d70009ea34d66bbf6c54c09fae7
tree80a68a084a309e19fdfa7192912732af786a69b8
parent8cec3dd9e5930c82c6bd0af3fdb3a36bcd428310
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
kernel/sched/fair.c