aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorPeter Oskolkov <[email protected]>2020-09-30 17:35:32 +0000
committerPeter Zijlstra <[email protected]>2020-10-03 14:30:52 +0000
commit9abb897345ce1d41257567f571a78137c961c405 (patch)
treea5a00908bccdf1e192bc2da9a5280e666f8f9d8b /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentrseq/selftests: Test MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ (diff)
downloadkernel-9abb897345ce1d41257567f571a78137c961c405.tar.gz
kernel-9abb897345ce1d41257567f571a78137c961c405.zip
sched/fair: Tweak pick_next_entity()
Currently, pick_next_entity(...) has the following structure (simplified): [...] if (last_buddy_ok()) result = last_buddy; if (next_buddy_ok()) result = next_buddy; [...] The intended behavior is to prefer next buddy over last buddy; the current code somewhat obfuscates this, and also wastes cycles checking the last buddy when eventually the next buddy is picked up. So this patch refactors two 'ifs' above into [...] if (next_buddy_ok()) result = next_buddy; else if (last_buddy_ok()) result = last_buddy; [...] Signed-off-by: Peter Oskolkov <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Vincent Guittot <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions