[PATCH 06/16] sched: Disable WAKE_AFFINE for asymmetric configurations
From: Morten Rasmussen
Date: Mon May 23 2016 - 06:58:41 EST
If the system has cpu of different compute capacities (e.g. big.LITTLE)
let affine wakeups be constrained to cpus of the same type.
cc: Ingo Molnar <mingo@xxxxxxxxxx>
cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
Signed-off-by: Morten Rasmussen <morten.rasmussen@xxxxxxx>
---
kernel/sched/core.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index d9619a3..558ec4a 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -6410,6 +6410,9 @@ sd_init(struct sched_domain_topology_level *tl, int cpu)
sd->idle_idx = 1;
}
+ if (sd->flags & SD_ASYM_CPUCAPACITY)
+ sd->flags &= ~SD_WAKE_AFFINE;
+
sd->private = &tl->data;
return sd;
--
1.9.1