From patchwork Mon May 23 10:58:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Morten Rasmussen X-Patchwork-Id: 68358 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp13384qge; Mon, 23 May 2016 03:58:53 -0700 (PDT) X-Received: by 10.98.24.68 with SMTP id 65mr20759795pfy.160.1464001129140; Mon, 23 May 2016 03:58:49 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d15si51081055pfb.137.2016.05.23.03.58.47; Mon, 23 May 2016 03:58:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754390AbcEWK6i (ORCPT + 30 others); Mon, 23 May 2016 06:58:38 -0400 Received: from foss.arm.com ([217.140.101.70]:50144 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752178AbcEWK6e (ORCPT ); Mon, 23 May 2016 06:58:34 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 45B74448; Mon, 23 May 2016 03:58:56 -0700 (PDT) Received: from e105550-lin.cambridge.arm.com (e105550-lin.cambridge.arm.com [10.1.207.130]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id F09123F246; Mon, 23 May 2016 03:58:32 -0700 (PDT) From: Morten Rasmussen To: peterz@infradead.org, mingo@redhat.com Cc: dietmar.eggemann@arm.com, yuyang.du@intel.com, vincent.guittot@linaro.org, mgalbraith@suse.de, linux-kernel@vger.kernel.org, Morten Rasmussen Subject: [PATCH 06/16] sched: Disable WAKE_AFFINE for asymmetric configurations Date: Mon, 23 May 2016 11:58:48 +0100 Message-Id: <1464001138-25063-7-git-send-email-morten.rasmussen@arm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1464001138-25063-1-git-send-email-morten.rasmussen@arm.com> References: <1464001138-25063-1-git-send-email-morten.rasmussen@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If the system has cpu of different compute capacities (e.g. big.LITTLE) let affine wakeups be constrained to cpus of the same type. cc: Ingo Molnar cc: Peter Zijlstra Signed-off-by: Morten Rasmussen --- kernel/sched/core.c | 3 +++ 1 file changed, 3 insertions(+) -- 1.9.1 diff --git a/kernel/sched/core.c b/kernel/sched/core.c index d9619a3..558ec4a 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -6410,6 +6410,9 @@ sd_init(struct sched_domain_topology_level *tl, int cpu) sd->idle_idx = 1; } + if (sd->flags & SD_ASYM_CPUCAPACITY) + sd->flags &= ~SD_WAKE_AFFINE; + sd->private = &tl->data; return sd;