Message ID | 1404144343-18720-13-git-send-email-vincent.guittot@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCPZXIGQSEHBBVEWY2OQKGQEBNIZ5AI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f198.google.com (mail-pd0-f198.google.com [209.85.192.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5D2C4203C0 for <linaro@patches.linaro.org>; Mon, 30 Jun 2014 16:07:49 +0000 (UTC) Received: by mail-pd0-f198.google.com with SMTP id y10sf40017811pdj.9 for <linaro@patches.linaro.org>; Mon, 30 Jun 2014 09:07:48 -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=ong679LsU5/ek+X75By5ZxysQnofoiwXbZEKArdKBKo=; b=jwxzzsgBFzuzZOw4yNvFGo4m5pWrs4NdZLbkRox4arG1RDsri9LdqMk2L+Ebe2RVp6 SlFz4Rg1HMptBWjuZgD/Reg2U1pvUiR4VoIWJQaKuATsb+TPaH8yqdcCfzwQ8FKKSqig CHtMjyvX1VArIeeQcpO1tLHtXLKkqkcYhf6MRVl6ADhN6IjYE2PlJzvJQDq5TpNs6/Hp 8w4ZXSIimtZ3fmEbRIcs4vJCUM296lSnkgSNmz/0cjgS8IDlwq+CJ+Z+4vGNEjuLyQ3v 39TxiAnTI1Pzzev2AyRzCjStFiyEd5qDh3rlMRpan+pTfTE//YCbgyC2I5uId45hdGHC 51YQ== X-Gm-Message-State: ALoCoQkNFLVLA6xRy1BHhU2x00r0+zLrpxFOFFUL95t4anA92QabWy7LtOpac8qwO35vVxw/8sgK X-Received: by 10.66.169.231 with SMTP id ah7mr22646739pac.40.1404144468718; Mon, 30 Jun 2014 09:07:48 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.44.35 with SMTP id f32ls309961qga.54.gmail; Mon, 30 Jun 2014 09:07:48 -0700 (PDT) X-Received: by 10.52.228.163 with SMTP id sj3mr25557220vdc.30.1404144468609; Mon, 30 Jun 2014 09:07:48 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id em7si10216537vdb.53.2014.06.30.09.07.48 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Jun 2014 09:07:48 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 as permitted sender) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id la4so7753870vcb.14 for <patchwork-forward@linaro.org>; Mon, 30 Jun 2014 09:07:48 -0700 (PDT) X-Received: by 10.58.220.230 with SMTP id pz6mr38947668vec.9.1404144468511; Mon, 30 Jun 2014 09:07: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.221.37.5 with SMTP id tc5csp151263vcb; Mon, 30 Jun 2014 09:07:48 -0700 (PDT) X-Received: by 10.66.141.165 with SMTP id rp5mr53914232pab.90.1404144467804; Mon, 30 Jun 2014 09:07:47 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ey3si23600963pbc.244.2014.06.30.09.07.45; Mon, 30 Jun 2014 09:07:45 -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 S1756200AbaF3QHf (ORCPT <rfc822;mturquette@linaro.org> + 27 others); Mon, 30 Jun 2014 12:07:35 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:34260 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754569AbaF3QHI (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 30 Jun 2014 12:07:08 -0400 Received: by mail-wi0-f178.google.com with SMTP id n15so6279623wiw.11 for <linux-kernel@vger.kernel.org>; Mon, 30 Jun 2014 09:07:06 -0700 (PDT) X-Received: by 10.194.86.42 with SMTP id m10mr3745335wjz.132.1404144426543; Mon, 30 Jun 2014 09:07:06 -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 lo18sm32896271wic.1.2014.06.30.09.07.04 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Jun 2014 09:07:05 -0700 (PDT) From: Vincent Guittot <vincent.guittot@linaro.org> To: peterz@infradead.org, mingo@kernel.org, linux-kernel@vger.kernel.org, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org Cc: preeti@linux.vnet.ibm.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, Vincent Guittot <vincent.guittot@linaro.org> Subject: [PATCH v3 12/12] sched: add SD_PREFER_SIBLING for SMT level Date: Mon, 30 Jun 2014 18:05:43 +0200 Message-Id: <1404144343-18720-13-git-send-email-vincent.guittot@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1404144343-18720-1-git-send-email-vincent.guittot@linaro.org> References: <1404144343-18720-1-git-send-email-vincent.guittot@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> 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.220.169 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: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 92dd6d1..9103669 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -6068,6 +6068,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% */
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 <vincent.guittot@linaro.org> --- kernel/sched/core.c | 1 + 1 file changed, 1 insertion(+)