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: 5218501 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3F2E59F380 for ; Mon, 3 Nov 2014 17:16:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 76D892010F for ; Mon, 3 Nov 2014 17:16:24 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A6DC42015A for ; Mon, 3 Nov 2014 17:16:23 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XlLDA-00077Z-UD; Mon, 03 Nov 2014 17:14:36 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XlLCn-0006y8-3M for linux-arm-kernel@bombadil.infradead.org; Mon, 03 Nov 2014 17:14:13 +0000 Received: from mail-wg0-f49.google.com ([74.125.82.49]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XlKvl-0001Gn-5F for linux-arm-kernel@lists.infradead.org; Mon, 03 Nov 2014 16:56:40 +0000 Received: by mail-wg0-f49.google.com with SMTP id x13so12834666wgg.8 for ; Mon, 03 Nov 2014 08:56:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=rZdd320zn6VOSf/3pkN3Q7zaRyGZKSA+vBt+EvzL+7M=; b=jJv2dYBUN18UpounlIHRaQ80ZOW22dxgWCGwzCQIGv0m/aMFeXwyZMSfmYVACv9uz1 EjvdnSIuq8z/ov42CLFM4Y8GSRvkKA8ADeAuvOsVy5274ThQG0/i78/U9b9Y8LYYAtt3 lAP499mfbaGoXg6zuXawRoWH2oEtvOxG0jDfl8MHuh08EpI//xU+U5sZv0W+8KP3/6z7 VvPLN3lXi/xCPTuEAYggWIwNPug1hut49NmiCxsqteW+9Q54QaeUvqUPbktCSccGj4x9 UIuZZGiYsnzu7XSouGhzZjiwYs8sSKMqwmS6N9w4D1SXRMpeqJMFRIaFvJ9JhW0StPEC k1rA== X-Gm-Message-State: ALoCoQmcXuXs8htT9/ozwT3OsKp5DO28ZqFtff35tNq3gIFkmMZTR6HC5AfmF8ImSQv49NwRd/9c 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141103_165637_205031_6F569423 X-CRM114-Status: UNSURE ( 9.36 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) Cc: nicolas.pitre@linaro.org, riel@redhat.com, efault@gmx.de, Vincent Guittot , linaro-kernel@lists.linaro.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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% */