diff options
author | Shrikanth Hegde <[email protected]> | 2024-03-26 20:56:16 +0530 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2024-03-28 10:39:18 +0100 |
commit | 902e786c4a54a2c4f7462b9026bb56610888db3d (patch) | |
tree | 1562733605c2dc6a3a6b233b63bea99a8de3eef0 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | c829d6818b60c591f70c060b2bb75d76cf0cec6d (diff) |
sched/fair: Combine EAS check with root_domain::overutilized access
Access to root_domainoverutilized is always used with sched_energy_enabled in
the pattern:
if (sched_energy_enabled && !overutilized)
do something
So modify the helper function to utilize this pattern. This is more
readable code as it would say, do something when root domain is not
overutilized. This function always return true when EAS is disabled.
No change in functionality intended.
Suggested-by: Vincent Guittot <[email protected]>
Signed-off-by: Shrikanth Hegde <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions