From patchwork Tue Aug 26 11:06:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Guittot X-Patchwork-Id: 35987 Return-Path: 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 ; Tue, 26 Aug 2014 11:08:28 +0000 (UTC) Received: by mail-pa0-f72.google.com with SMTP id eu11sf122041036pac.3 for ; 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 (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 ; 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 ; 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 + 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 ); Tue, 26 Aug 2014 07:08:07 -0400 Received: by mail-wg0-f51.google.com with SMTP id b13so14188332wgh.34 for ; 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 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Aug 2014 04:08:05 -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, Vincent Guittot 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: 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: , 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 --- kernel/sched/core.c | 1 + 1 file changed, 1 insertion(+) 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% */