From patchwork Mon Nov 3 16:54:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Guittot X-Patchwork-Id: 40054 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f71.google.com (mail-ee0-f71.google.com [74.125.83.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C38AF21894 for ; Mon, 3 Nov 2014 16:57:38 +0000 (UTC) Received: by mail-ee0-f71.google.com with SMTP id e51sf3091272eek.2 for ; Mon, 03 Nov 2014 08:57:38 -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=Bsl1jFefYDn+KLmzwTkCRiP2HNvrfQLRf1vpbD+mcyDUwR7BQu5FIYedtzGQysPiSR USiwsOrFupTL3+fs7b1bphfRO0++vMYfnzx2GgjyAkK7rPiCIgurosDjkAtacB8sMmVA yUkSQknrZUx4AeRy0QIkuNsSBLDFPvON0oY3brYnXWnUkoyKFk1fjLgZ95ND/UF77mba hJr1f2C440rCwt8Eqg+UjxwxUgrbg2XH4ozj16LhB9wssPw6OfLbLrXq5Oajvo0i/dvV DQKXjOfY2AfZ/Gb+Bh4xe5gOIsjUr8NgiurwvaCN6Ag+Ohddshl4KY6XewrBAv4LCsN1 Wusw== X-Gm-Message-State: ALoCoQm8A1EwE7wA0dAuqC0dF4t5ZvcGtkp96q6VoZOgm2eMl4vo4pHb3LknUhDIp/PUzthS644k X-Received: by 10.112.89.195 with SMTP id bq3mr1053662lbb.9.1415033857913; Mon, 03 Nov 2014 08:57:37 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.28.133 with SMTP id b5ls704875lah.26.gmail; Mon, 03 Nov 2014 08:57:37 -0800 (PST) X-Received: by 10.152.44.233 with SMTP id h9mr52122614lam.73.1415033857741; Mon, 03 Nov 2014 08:57:37 -0800 (PST) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id g5si16873826lbd.20.2014.11.03.08.57.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Nov 2014 08:57:37 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by mail-lb0-f181.google.com with SMTP id l4so2900468lbv.40 for ; Mon, 03 Nov 2014 08:57:37 -0800 (PST) X-Received: by 10.152.120.199 with SMTP id le7mr29504724lab.67.1415033857602; Mon, 03 Nov 2014 08:57:37 -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.141.34 with SMTP id rl2csp21105lbb; Mon, 3 Nov 2014 08:57:36 -0800 (PST) X-Received: by 10.70.35.229 with SMTP id l5mr43882069pdj.47.1415033855657; Mon, 03 Nov 2014 08:57:35 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x2si15764605pdj.69.2014.11.03.08.57.35 for ; Mon, 03 Nov 2014 08:57:35 -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 S1753036AbaKCQ5c (ORCPT + 25 others); Mon, 3 Nov 2014 11:57:32 -0500 Received: from mail-wi0-f175.google.com ([209.85.212.175]:53529 "EHLO mail-wi0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752812AbaKCQ4Q (ORCPT ); Mon, 3 Nov 2014 11:56:16 -0500 Received: by mail-wi0-f175.google.com with SMTP id ex7so7049881wid.14 for ; Mon, 03 Nov 2014 08:56:15 -0800 (PST) X-Received: by 10.194.78.82 with SMTP id z18mr3867629wjw.120.1415033775762; Mon, 03 Nov 2014 08:56:15 -0800 (PST) Received: from lmenx30s.lme.st.com (LPuteaux-656-01-48-212.w82-127.abo.wanadoo.fr. [82.127.83.212]) by mx.google.com with ESMTPSA id s8sm22798078wjx.9.2014.11.03.08.56.13 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Nov 2014 08:56:14 -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, linux-arm-kernel@lists.infradead.org Cc: riel@redhat.com, efault@gmx.de, nicolas.pitre@linaro.org, linaro-kernel@lists.linaro.org, Vincent Guittot Subject: [PATCH v9 09/10] sched: add SD_PREFER_SIBLING for SMT level Date: Mon, 3 Nov 2014 17:54:46 +0100 Message-Id: <1415033687-23294-10-git-send-email-vincent.guittot@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1415033687-23294-1-git-send-email-vincent.guittot@linaro.org> References: <1415033687-23294-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.217.181 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% */