aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Redpath <chris.redpath@arm.com>2014-01-09 10:38:54 +0000
committerJon Medhurst <tixy@linaro.org>2014-01-22 09:50:43 +0000
commit257e5075a1433513bb354f202adcd2dea8a8dc08 (patch)
tree065140534797edf3c76916aca8e5d8542a0c5a99
parent7896b1e659db571556436b99ebb2e475e54a24f5 (diff)
downloadlinaro-lsk-257e5075a1433513bb354f202adcd2dea8a8dc08.tar.gz
sched: hmp: Make idle balance behaviour normal when packing disabled
The presence of packing permanently changed the idle balance behaviour. Do not restrict idle balance on the smallest CPUs when packing is present but disabled. Signed-off-by: Chris Redpath <chris.redpath@arm.com> Signed-off-by: Jon Medhurst <tixy@linaro.org>
-rw-r--r--kernel/sched/fair.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 383cd134705..28debe3047b 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -6350,6 +6350,10 @@ static int hmp_packing_ilb_needed(int cpu)
if (!hmp_cpu_is_slowest(cpu))
return 1;
+ /* if disabled, use normal ILB behaviour */
+ if (!hmp_packing_enabled)
+ return 1;
+
hmp = hmp_cpu_domain(cpu);
for_each_cpu_and(cpu, &hmp->cpus, nohz.idle_cpus_mask) {
/* only idle balance if a CPU is loaded over threshold */