aboutsummaryrefslogtreecommitdiff
path: root/scripts/clang-tools/gen_compile_commands.py
diff options
context:
space:
mode:
authorPeter Oskolkov <[email protected]>2020-09-30 10:35:32 -0700
committerPeter Zijlstra <[email protected]>2020-10-03 16:30:52 +0200
commit9abb897345ce1d41257567f571a78137c961c405 (patch)
treea5a00908bccdf1e192bc2da9a5280e666f8f9d8b /scripts/clang-tools/gen_compile_commands.py
parentf166b111e0491486fca0d105f09655ab718bd1c8 (diff)
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 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions