ANDROID: 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)
committerChris Redpath <chris.redpath@arm.com>
Thu, 14 Dec 2017 21:41:03 +0000 (21:41 +0000)
commitb523403113a539aca1c5b27a21324fa229310df1
tree99af86aa228929b6123ed19b48c63b1709bbaab5
parentac3ecee61d299c280c4143f72dfd816c304e70e0
ANDROID: 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>
Change-Id: Ifa66a30d53c17d339fc5058901a87a643ffc3704
Signed-off-by: Chris Redpath <chris.redpath@arm.com>
kernel/sched/fair.c