aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorShrikanth Hegde <[email protected]>2024-03-25 21:09:26 +0530
committerIngo Molnar <[email protected]>2024-03-26 20:16:20 +0100
commitc829d6818b60c591f70c060b2bb75d76cf0cec6d (patch)
tree617577782cf93538d43bad17484b37e7f82c5420 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentd0f5d3cefc259f498456338d319098dc84393b24 (diff)
sched/fair: Simplify the continue_balancing logic in sched_balance_newidle()
newidle(CPU_NEWLY_IDLE) balancing doesn't stop the load-balancing if the continue_balancing flag is reset, but the other two balancing (IDLE, BUSY) cases do that. newidle balance stops the load balancing if rq has a task or there is wakeup pending. The same checks are present in should_we_balance for newidle. Hence use the return value and simplify continue_balancing mechanism for newidle. Update the comment surrounding it as well. No change in functionality intended. Signed-off-by: Shrikanth Hegde <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Reviewed-by: Dietmar Eggemann <[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