From patchwork Tue Oct 7 12:13:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Guittot X-Patchwork-Id: 38398 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F28B3202E7 for ; Tue, 7 Oct 2014 12:15:50 +0000 (UTC) Received: by mail-wi0-f200.google.com with SMTP id cc10sf2800279wib.7 for ; Tue, 07 Oct 2014 05:15:49 -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=exrJzWrUCxYOWn0jOYGr2dJVg3IH1HOOpwCn1a0OHQI=; b=QWLLMpf5lzh912QbZJc1pUz3aH8GZIq6P+KI515dW/FR9A5B7D3Ut1FRrNb2MbXV7o vYbgO5dJN8m060VY6kUf59bZW4z0WDy01vp4GNFwUTukaNKlqHFb+lVtenf6hTsrUpVT D0cqP/aArW3sCtb1Lv36HFPSdzndWj0WAD484JlBNavtVABnVZj4EqWNayyrITtf5vw1 GCJfBZoa6aqWlewuStIk8rg9HGg1JL1DCDQk/Re3BtGa+M0tS/LOSN0xGa+lo7vBh4uh tf+JQ5M0/DHk3cf2yiBtWjxd1/5Ba8vuEacDoG9d6Ss1asU6KrcPTpM9tbvXXQVCQMF5 IUsg== X-Gm-Message-State: ALoCoQk5dRcF0gCRsRkCn9vA9416qtK4HyriI8b2g8WsceacJavJDrw/tYglsasFB7qx6C9xk5gp X-Received: by 10.112.156.167 with SMTP id wf7mr8791lbb.20.1412684149761; Tue, 07 Oct 2014 05:15:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.21.193 with SMTP id x1ls706340lae.53.gmail; Tue, 07 Oct 2014 05:15:49 -0700 (PDT) X-Received: by 10.152.206.101 with SMTP id ln5mr3768144lac.46.1412684149131; Tue, 07 Oct 2014 05:15:49 -0700 (PDT) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com [209.85.215.44]) by mx.google.com with ESMTPS id c10si28422910lab.76.2014.10.07.05.15.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 Oct 2014 05:15:48 -0700 (PDT) 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 gb8so6304056lab.3 for ; Tue, 07 Oct 2014 05:15:48 -0700 (PDT) X-Received: by 10.152.28.167 with SMTP id c7mr3721869lah.27.1412684148534; Tue, 07 Oct 2014 05:15:48 -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 of9csp338943lbb; Tue, 7 Oct 2014 05:15:47 -0700 (PDT) X-Received: by 10.70.91.39 with SMTP id cb7mr3562333pdb.8.1412684146864; Tue, 07 Oct 2014 05:15:46 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rh13si13063157pdb.36.2014.10.07.05.15.45 for ; Tue, 07 Oct 2014 05:15:46 -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 S1753687AbaJGMPn (ORCPT + 27 others); Tue, 7 Oct 2014 08:15:43 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:60314 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753396AbaJGMPW (ORCPT ); Tue, 7 Oct 2014 08:15:22 -0400 Received: by mail-wi0-f172.google.com with SMTP id n3so7611488wiv.5 for ; Tue, 07 Oct 2014 05:15:21 -0700 (PDT) X-Received: by 10.194.58.229 with SMTP id u5mr2859413wjq.133.1412684121595; Tue, 07 Oct 2014 05:15:21 -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 v9sm20544897wjy.14.2014.10.07.05.15.19 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 Oct 2014 05:15:20 -0700 (PDT) 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.linux.org.uk, linux-arm-kernel@lists.infradead.org Cc: riel@redhat.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 v7 7/7] sched: add SD_PREFER_SIBLING for SMT level Date: Tue, 7 Oct 2014 14:13:37 +0200 Message-Id: <1412684017-16595-8-git-send-email-vincent.guittot@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1412684017-16595-1-git-send-email-vincent.guittot@linaro.org> References: <1412684017-16595-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% */