Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6545c09e authored by Vincent Guittot's avatar Vincent Guittot Committed by Todd Kjos
Browse files

UPSTREAM: 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 place at least one task per core.

Signed-off-by: default avatarVincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: default avatarPreeti U. Murthy <preeti@linux.vnet.ibm.com>
Cc: Morten.Rasmussen@arm.com
Cc: dietmar.eggemann@arm.com
Cc: efault@gmx.de
Cc: kamalesh@linux.vnet.ibm.com
Cc: linaro-kernel@lists.linaro.org
Cc: nicolas.pitre@linaro.org
Cc: riel@redhat.com
Link: http://lkml.kernel.org/r/1425052454-25797-11-git-send-email-vincent.guittot@linaro.org


Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>

(am from https://patchwork.kernel.org/patch/5901561

)
Signed-off-by: default avatarJuri Lelli <juri.lelli@arm.com>

BUG=chromium:48849
TEST=build and boot tested

Change-Id: I9f76da5e5bad337794ee8b84ccaa283904a12233
Reviewed-on: https://chromium-review.googlesource.com/271864


Reviewed-by: default avatarRicky Liang <jcliang@chromium.org>
Tested-by: default avatarRicky Liang <jcliang@chromium.org>
Commit-Queue: Ricky Liang <jcliang@chromium.org>
Trybot-Ready: Ricky Liang <jcliang@chromium.org>
parent ea6b9718
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6543,6 +6543,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% */