hmp: Restrict ILB events if no CPU has > 1 task
authorChris Redpath <chris.redpath@arm.com>
Tue, 12 Aug 2014 13:50:55 +0000 (14:50 +0100)
committerJon Medhurst <tixy@linaro.org>
Tue, 12 Aug 2014 16:46:58 +0000 (17:46 +0100)
commite482d95c1d1888f34cc3f7e6778806cfda6174ff
treebd4d714e7d094ac80a5208f57919d6690cf8c69d
parentf83262408293795e5186e9d1bf66d525b24fdb12
hmp: Restrict ILB events if no CPU has > 1 task

Frequently in HMP, the big CPUs are only active with one task per
CPU and there may be idle CPUs in the big cluster. This patch avoids
triggering an idle balance in situations where none of the active
CPUs in the current HMP domain have > 1 tasks running.

When packing is enabled, only enforce this behaviour when we are
not in the smallest domain - there we idle balance whenever a CPU
is over the up_threshold regardless of tasks in case one needs to
be moved.

Signed-off-by: Chris Redpath <chris.redpath@arm.com>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
kernel/sched/fair.c