From patchwork Thu Jan 15 10:09:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Guittot X-Patchwork-Id: 43159 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 666C0240D7 for ; Thu, 15 Jan 2015 10:13:10 +0000 (UTC) Received: by mail-wi0-f197.google.com with SMTP id l15sf7670270wiw.0 for ; Thu, 15 Jan 2015 02:13:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=exrJzWrUCxYOWn0jOYGr2dJVg3IH1HOOpwCn1a0OHQI=; b=MuxJEfItRv8/d4rBHJWESI1kANDsXur9EX4nhtVPv8GRm36xVAuuCwW7mX4gV89/To 2bAB3XhN9QsWB5SuV9g0Lt8qFSqwVDNz5CMXq1cV5LkALo8baFvuizv/4efioDj2Hvx6 CfnxmBXY6gvmDOJiR9slmqgpM2Bcg32qPrFMMspKJx8zpLjhBM/fxatf/gkAY/Y5jRSl g8UF6hAhbXPUtM1Dn+FFXf+g/yZw6sbBXjDc87iRjfEQKSsbZAXRkGe0h4Qeyukb2zLM HDk88Jb1qQ0rrmnwYMYh8LlczSe/BaGveqemKY93BQVnKrBuhaAjnss6mmYL2cbO1nuX yvvA== X-Gm-Message-State: ALoCoQk6z8Py9jotGPY5K9ASAo9LiaWuIof5PvpBoPD+57lvXkWWS2fBr/S1KWcDOj2+wEPW4efF X-Received: by 10.112.161.201 with SMTP id xu9mr180012lbb.11.1421316789713; Thu, 15 Jan 2015 02:13:09 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.88.49 with SMTP id bd17ls205684lab.14.gmail; Thu, 15 Jan 2015 02:13:09 -0800 (PST) X-Received: by 10.152.45.4 with SMTP id i4mr8926592lam.74.1421316789545; Thu, 15 Jan 2015 02:13:09 -0800 (PST) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id yo1si953966lbb.92.2015.01.15.02.13.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 15 Jan 2015 02:13:09 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by mail-la0-f44.google.com with SMTP id gd6so12802982lab.3 for ; Thu, 15 Jan 2015 02:13:09 -0800 (PST) X-Received: by 10.112.41.234 with SMTP id i10mr8935338lbl.25.1421316789433; Thu, 15 Jan 2015 02:13:09 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.9.200 with SMTP id c8csp1981349lbb; Thu, 15 Jan 2015 02:13:08 -0800 (PST) X-Received: by 10.66.160.2 with SMTP id xg2mr12713062pab.111.1421316787559; Thu, 15 Jan 2015 02:13:07 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y3si1316844pdi.101.2015.01.15.02.13.06; Thu, 15 Jan 2015 02:13:07 -0800 (PST) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753150AbbAOKM7 (ORCPT + 28 others); Thu, 15 Jan 2015 05:12:59 -0500 Received: from mail-we0-f176.google.com ([74.125.82.176]:38158 "EHLO mail-we0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753105AbbAOKMz (ORCPT ); Thu, 15 Jan 2015 05:12:55 -0500 Received: by mail-we0-f176.google.com with SMTP id w61so13690885wes.7 for ; Thu, 15 Jan 2015 02:12:54 -0800 (PST) X-Received: by 10.180.14.136 with SMTP id p8mr17250756wic.20.1421316774442; Thu, 15 Jan 2015 02:12:54 -0800 (PST) Received: from lmenx30s.lme.st.com (LPuteaux-656-1-48-212.w82-127.abo.wanadoo.fr. [82.127.83.212]) by mx.google.com with ESMTPSA id fi10sm15113674wib.13.2015.01.15.02.12.50 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 15 Jan 2015 02:12:53 -0800 (PST) From: Vincent Guittot To: peterz@infradead.org, mingo@kernel.org, linux-kernel@vger.kernel.org, preeti@linux.vnet.ibm.com, Morten.Rasmussen@arm.com, kamalesh@linux.vnet.ibm.com Cc: riel@redhat.com, efault@gmx.de, nicolas.pitre@linaro.org, dietmar.eggemann@arm.com, linaro-kernel@lists.linaro.org, Vincent Guittot Subject: [PATCH RESEND v9 09/10] sched: add SD_PREFER_SIBLING for SMT level Date: Thu, 15 Jan 2015 11:09:29 +0100 Message-Id: <1421316570-23097-10-git-send-email-vincent.guittot@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1421316570-23097-1-git-send-email-vincent.guittot@linaro.org> References: <1421316570-23097-1-git-send-email-vincent.guittot@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: vincent.guittot@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 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% */