sched/fair: Introduce is_rd_overutilized() helper function to access root_domain...
authorShrikanth Hegde <sshegde@linux.ibm.com>
Thu, 7 Mar 2024 08:57:24 +0000 (14:27 +0530)
committerIngo Molnar <mingo@kernel.org>
Tue, 26 Mar 2024 07:58:59 +0000 (08:58 +0100)
commitd0f5d3cefc259f498456338d319098dc84393b24
treefafa3543636916db4cf355cc0716286f67dedd1a
parentbe3a51e68f2f1b17250ce40d8872c7645b7a2991
sched/fair: Introduce is_rd_overutilized() helper function to access root_domain::overutilized

The root_domain::overutilized field is READ_ONCE() accessed in
multiple places, which could be simplified with a helper function.

This might also make it more apparent that it needs to be used
only in case of EAS.

No change in functionality intended.

Signed-off-by: Shrikanth Hegde <sshegde@linux.ibm.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Qais Yousef <qyousef@layalina.io>
Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lore.kernel.org/r/20240307085725.444486-3-sshegde@linux.ibm.com
kernel/sched/fair.c