sched: Enable idle balance to pull single task towards cpu with higher capacity
authorDietmar Eggemann <dietmar.eggemann@arm.com>
Mon, 26 Jan 2015 19:47:28 +0000 (19:47 +0000)
committerLeo Yan <leo.yan@linaro.org>
Tue, 10 May 2016 08:49:49 +0000 (16:49 +0800)
commitcda2bd333be6e5e8c38fa072c9c4c296312dfd8d
tree8707e66be01c969ea77d0281b95bce399821234e
parent8a5c0339bb7b7eedd2e75b62ebe4144a195f7ef3
sched: Enable idle balance to pull single task towards cpu with higher capacity

We do not want to miss out on the ability to pull a single remaining
task from a potential source cpu towards an idle destination cpu. Add an
extra criteria to need_active_balance() to kick off active load balance
if the source cpu is over-utilized and has lower capacity than the
destination cpu.

cc: Ingo Molnar <mingo@redhat.com>
cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Morten Rasmussen <morten.rasmussen@arm.com>
Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
kernel/sched/fair.c