sched/fair: Reorder newidle_balance pulled_task tests
authorVincent Guittot <vincent.guittot@linaro.org>
Wed, 24 Feb 2021 13:30:05 +0000 (14:30 +0100)
committerIngo Molnar <mingo@kernel.org>
Sat, 6 Mar 2021 11:40:21 +0000 (12:40 +0100)
commit6553fc18179113a11835d5fde1735259f8943a55
tree2657574978e98ae3b4d6cdebb0c870a7dd4cf020
parent7a82e5f52a3506bc35a4dc04d53ad2c9daf82e7f
sched/fair: Reorder newidle_balance pulled_task tests

Reorder the tests and skip useless ones when no load balance has been
performed and rq lock has not been released.

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Valentin Schneider <valentin.schneider@arm.com>
Link: https://lkml.kernel.org/r/20210224133007.28644-6-vincent.guittot@linaro.org
kernel/sched/fair.c