From mboxrd@z Thu Jan 1 00:00:00 1970 From: kernellwp@gmail.com (Wanpeng Li) Date: Tue, 04 Nov 2014 11:21:19 +0800 Subject: [PATCH v8 08/10] sched: add SD_PREFER_SIBLING for SMT level In-Reply-To: <1414745252-4895-9-git-send-email-vincent.guittot@linaro.org> References: <1414745252-4895-1-git-send-email-vincent.guittot@linaro.org> <1414745252-4895-9-git-send-email-vincent.guittot@linaro.org> Message-ID: <5458462F.6000704@gmail.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi Vincent, On 14/10/31 ??4:47, Vincent Guittot wrote: > Add the SD_PREFER_SIBLING flag for SMT level in order to ensure that > the scheduler will put at least 1 task per core. What's the behavior before this patch? Regards, Wanpeng Li > > Signed-off-by: Vincent Guittot > Reviewed-by: Preeti U. Murthy > --- > kernel/sched/core.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/kernel/sched/core.c b/kernel/sched/core.c > index 37fb92c..731f2ad 100644 > --- a/kernel/sched/core.c > +++ b/kernel/sched/core.c > @@ -6165,6 +6165,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% */ >