From patchwork Tue Sep 23 16:08:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Guittot X-Patchwork-Id: 37743 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 10F1220792 for ; Tue, 23 Sep 2014 16:10:10 +0000 (UTC) Received: by mail-wi0-f198.google.com with SMTP id n3sf2703865wiv.1 for ; Tue, 23 Sep 2014 09:10:10 -0700 (PDT) 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=Cg3HHUASkTL+3RsqC4EMc3wibO/G7TLGfLTj8wk1umo=; b=TG0x0s8sjrVrABcAGztrBsVwksvM2v1ny2cn1AucbbT4FJsZ1RVo+b+O2yMH6d+nP6 jOH6koYWajix2Mj3Ij9oJa5cQ2p+pYJy4dWX4k1I6Z7Mq737sX3VleuZRXoEWdUflHAf ZRw1I4w+6d6aBdkaTY6A1QcWC4b1FNU0XyOEWct+uOs8w1iKzY7FZA6ADRBod1jtZYgx cjtsU5/fdaWJD3QWC/cmwXyMcguUAda5GDGPEoh/ul4dFQ5hRa9UTdpFsNj/C4UsnPSH I8F4F60jyTTxuzC0E285ZVxIVXWKqtDUFmFsKe+bRigqgL7Fki4N84+B0saKtNWj5X2H sqfw== X-Gm-Message-State: ALoCoQksk6y0K1ri36Kk424cRQKaY79ryiC4PIuvTwrdi01/LRMr1+O5NhRVQq+rc0efFwZojZgO X-Received: by 10.180.76.230 with SMTP id n6mr3174535wiw.0.1411488610191; Tue, 23 Sep 2014 09:10:10 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.5 with SMTP id m5ls67621laj.81.gmail; Tue, 23 Sep 2014 09:10:09 -0700 (PDT) X-Received: by 10.112.205.39 with SMTP id ld7mr652944lbc.40.1411488609910; Tue, 23 Sep 2014 09:10:09 -0700 (PDT) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com [209.85.217.177]) by mx.google.com with ESMTPS id wo3si19301223lbb.66.2014.09.23.09.10.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 23 Sep 2014 09:10:09 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by mail-lb0-f177.google.com with SMTP id z12so9052524lbi.36 for ; Tue, 23 Sep 2014 09:10:09 -0700 (PDT) X-Received: by 10.112.4.33 with SMTP id h1mr429241lbh.67.1411488609836; Tue, 23 Sep 2014 09:10:09 -0700 (PDT) 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.130.169 with SMTP id of9csp442049lbb; Tue, 23 Sep 2014 09:10:08 -0700 (PDT) X-Received: by 10.70.135.137 with SMTP id ps9mr997282pdb.13.1411488605937; Tue, 23 Sep 2014 09:10:05 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pd4si21565535pdb.173.2014.09.23.09.10.05 for ; Tue, 23 Sep 2014 09:10:05 -0700 (PDT) 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 S1756543AbaIWQJ4 (ORCPT + 27 others); Tue, 23 Sep 2014 12:09:56 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:34239 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756481AbaIWQJl (ORCPT ); Tue, 23 Sep 2014 12:09:41 -0400 Received: by mail-wi0-f174.google.com with SMTP id fb4so5197388wid.13 for ; Tue, 23 Sep 2014 09:09:40 -0700 (PDT) X-Received: by 10.180.198.207 with SMTP id je15mr4815724wic.40.1411488579910; Tue, 23 Sep 2014 09:09:39 -0700 (PDT) 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 hm5sm16427901wjb.2.2014.09.23.09.09.37 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 23 Sep 2014 09:09:39 -0700 (PDT) From: Vincent Guittot To: peterz@infradead.org, mingo@kernel.org, linux-kernel@vger.kernel.org, preeti@linux.vnet.ibm.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org Cc: riel@redhat.com, Morten.Rasmussen@arm.com, efault@gmx.de, nicolas.pitre@linaro.org, linaro-kernel@lists.linaro.org, daniel.lezcano@linaro.org, dietmar.eggemann@arm.com, pjt@google.com, bsegall@google.com, Vincent Guittot Subject: [PATCH v6 6/6] sched: add SD_PREFER_SIBLING for SMT level Date: Tue, 23 Sep 2014 18:08:05 +0200 Message-Id: <1411488485-10025-7-git-send-email-vincent.guittot@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1411488485-10025-1-git-send-email-vincent.guittot@linaro.org> References: <1411488485-10025-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.177 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 c7c8ac4..f72663e 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -6134,6 +6134,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% */