aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Guittot <vincent.guittot@linaro.org>2015-01-15 11:09:29 +0100
committerRobin Randhawa <robin.randhawa@arm.com>2015-04-09 12:26:12 +0100
commitd873a7a93cf97fc54bb83b16036dc78ae113c1e8 (patch)
tree31b366ec3d2f7e2f31faeba6467edfec3491efac
parent41eb6176c7cd28f2783d7dd043cdf53b358aa011 (diff)
downloadkernel-d873a7a93cf97fc54bb83b16036dc78ae113c1e8.tar.gz
sched: add SD_PREFER_SIBLING for SMT level
Add the SD_PREFER_SIBLING flag for SMT level in order to ensure that the scheduler will put at least 1 task per core. Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org> Reviewed-by: Preeti U. Murthy <preeti@linux.vnet.ibm.com>
-rw-r--r--kernel/sched/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 212077a..2230aa4 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -5258,6 +5258,7 @@ sd_init(struct sched_domain_topology_level *tl, int cpu)
*/
if (sd->flags & SD_SHARE_CPUCAPACITY) {
+ sd->flags |= SD_PREFER_SIBLING;
sd->imbalance_pct = 110;
sd->smt_gain = 1178; /* ~15% */