Message ID | 1409051215-16788-13-git-send-email-vincent.guittot@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCPZXIGQSEHBBLGV6GPQKGQET37A2CQ@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f72.google.com (mail-pa0-f72.google.com [209.85.220.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CA41620551 for <linaro@patches.linaro.org>; Tue, 26 Aug 2014 11:08:28 +0000 (UTC) Received: by mail-pa0-f72.google.com with SMTP id eu11sf122041036pac.3 for <linaro@patches.linaro.org>; Tue, 26 Aug 2014 04:08:28 -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=Zc0rXQbzvAVplgB+/HjVJjn3NpKQKnoMyNDrSf+Q98o=; b=EWL6H/lBS2swqjnnRNlF6ciIZ3X628e13yrQ+z18QFdOyf5on5CMvDi3Xavkgpp9zV yb00dKP/Ckzs2fpYGfGb0aBq5Xcljeu5bnq7lQLjAw4RKcQJtcEgI0ULwB8E40aZWJdz zEg3BWqMlylHs82l+ypETamnmaF5xHaOQc0YQCC5GwpT9hWqTxE32n9BbjfYlaXlXcaN iUSJjx+mHjxWuKz/bDvNfiY5ATQFhYyNFyihOM1Qrj5WtwMoWoTjZzcsMzrZaIqJd8B8 qGe1ioKv0wHHntr7B0gUJcLjxz0CHlElln74XmRTLyOE1EM5ZDIZxR8aK+ZfycTSSBJG CpsA== X-Gm-Message-State: ALoCoQkf2uvl7aldqVDmNLedewHAf7lu+3EEqIgPop5iOTbch2PzivP9rf2S07GeLrckkJF62oPc X-Received: by 10.66.252.6 with SMTP id zo6mr17592705pac.40.1409051308135; Tue, 26 Aug 2014 04:08:28 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.87.6 with SMTP id q6ls2459875qgd.82.gmail; Tue, 26 Aug 2014 04:08:28 -0700 (PDT) X-Received: by 10.52.52.136 with SMTP id t8mr1057706vdo.21.1409051307977; Tue, 26 Aug 2014 04:08:27 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id wv12si1249144vcb.21.2014.08.26.04.08.27 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Aug 2014 04:08:27 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id hy10so16452690vcb.4 for <patchwork-forward@linaro.org>; Tue, 26 Aug 2014 04:08:27 -0700 (PDT) X-Received: by 10.53.6.132 with SMTP id cu4mr185647vdd.62.1409051307906; Tue, 26 Aug 2014 04:08:27 -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.45.67 with SMTP id uj3csp189087vcb; Tue, 26 Aug 2014 04:08:27 -0700 (PDT) X-Received: by 10.70.61.162 with SMTP id q2mr36109472pdr.50.1409051306493; Tue, 26 Aug 2014 04:08:26 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id oy3si3949283pdb.50.2014.08.26.04.08.25 for <multiple recipients>; Tue, 26 Aug 2014 04:08:26 -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 S1757712AbaHZLIK (ORCPT <rfc822;yazen.ghannam@linaro.org> + 26 others); Tue, 26 Aug 2014 07:08:10 -0400 Received: from mail-wg0-f51.google.com ([74.125.82.51]:52635 "EHLO mail-wg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757681AbaHZLIH (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 26 Aug 2014 07:08:07 -0400 Received: by mail-wg0-f51.google.com with SMTP id b13so14188332wgh.34 for <linux-kernel@vger.kernel.org>; Tue, 26 Aug 2014 04:08:06 -0700 (PDT) X-Received: by 10.194.187.4 with SMTP id fo4mr29184623wjc.35.1409051286513; Tue, 26 Aug 2014 04:08: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 q6sm2494891wjy.47.2014.08.26.04.08.04 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Aug 2014 04:08:05 -0700 (PDT) From: Vincent Guittot <vincent.guittot@linaro.org> 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, Vincent Guittot <vincent.guittot@linaro.org> Subject: [PATCH v5 12/12] sched: add SD_PREFER_SIBLING for SMT level Date: Tue, 26 Aug 2014 13:06:55 +0200 Message-Id: <1409051215-16788-13-git-send-email-vincent.guittot@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1409051215-16788-1-git-send-email-vincent.guittot@linaro.org> References: <1409051215-16788-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.173 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: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 7c3b237..ab5ab60 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -6093,6 +6093,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(+)