Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2567797imm; Mon, 10 Sep 2018 03:14:56 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaBrdx9YmeVUPvSclZk9tgeRtiTJjUijfQXDXoxVJEisWcK8t0Q9iIsvwdE+4+3V1+OCK1E X-Received: by 2002:a17:902:543:: with SMTP id 61-v6mr21334213plf.126.1536574496502; Mon, 10 Sep 2018 03:14:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536574496; cv=none; d=google.com; s=arc-20160816; b=DPUiGBRiiDgzgCDKOBIBIf/AHc9tbuf/p6J0nGFlZWfQVDeqmL/4QXDsr0eBrtr+Le br5oRuvOUxrsu4BidlQyP3RXfe6zBfSGlBv+2mYJLoNSqvxvYKrxCCcma0zOfYt6bdam DVF2N7y+NNy9hKkAEqtlgK/JTCUF4VXfAbhXIirfV2PthsWdRgm/qKXXY9iz2jDi4GtF DtzRTze+R+1BAHLIPr3t/hYj2f7gvcZ34ue0572OYyd3344svX+H/qH1/pG5QTdl4A0N dzejwLcHWiofJIm5ByajpWvYi4Lo+NrDl86MVj/FCA74XRVaLGQSG93OTunb9ioVdSyP ue2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=O+wgMCz58mu3F+voI49WtdTg87OZcAQ+IkAxQ/dZr3E=; b=Rzy1zoJntACrDgX9bGMeSxKJdj4krWZPMVwWwB1w/ZhgMZGB3o/c9PbN40x8hyU9EG DUEJrF/VIYa/4ZA7K+dwyP112BwfIvYn4JJjiMBPEkQeneWjLEFb5ZnlvZQiM+TeVHSm iGtrFWFM7ZhJdrG2jPJVaHsftXk6jbO67SvwwGCtsYSYmP1aOzMgmbKD//Gtrn4ojzfM zv/ziUqpFv41MLiefZ6tGOz4RLdO1vx96l+9nggAsbNvqtWojoMjoYFK02bQZgPivnWF MfkaD1v7uwxt462AmuWsj5RMSVzI+bO2oeaEI/z02hafAXB3Kbd2519dV0Kas+haYVPt ySOg== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f16-v6si15309161pgv.75.2018.09.10.03.14.41; Mon, 10 Sep 2018 03:14:56 -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 S1728234AbeIJPGd (ORCPT + 99 others); Mon, 10 Sep 2018 11:06:33 -0400 Received: from terminus.zytor.com ([198.137.202.136]:37751 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726738AbeIJPGc (ORCPT ); Mon, 10 Sep 2018 11:06:32 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w8AACklq1807755 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 10 Sep 2018 03:12:46 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w8AACjAF1807752; Mon, 10 Sep 2018 03:12:45 -0700 Date: Mon, 10 Sep 2018 03:12:45 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Morten Rasmussen Message-ID: Cc: linux@armlinux.org.uk, hpa@zytor.com, tglx@linutronix.de, mingo@kernel.org, morten.rasmussen@arm.com, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, peterz@infradead.org Reply-To: linux@armlinux.org.uk, hpa@zytor.com, mingo@kernel.org, tglx@linutronix.de, torvalds@linux-foundation.org, morten.rasmussen@arm.com, linux-kernel@vger.kernel.org, peterz@infradead.org In-Reply-To: <1532093554-30504-5-git-send-email-morten.rasmussen@arm.com> References: <1532093554-30504-5-git-send-email-morten.rasmussen@arm.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:sched/core] sched/topology, arch/arm: Rebuild sched_domain hierarchy when CPU capacity changes Git-Commit-ID: e1799a80a4f5a463f252b7325da8bb66dfd55471 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_DATE_IN_FUTURE_96_Q autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: e1799a80a4f5a463f252b7325da8bb66dfd55471 Gitweb: https://git.kernel.org/tip/e1799a80a4f5a463f252b7325da8bb66dfd55471 Author: Morten Rasmussen AuthorDate: Fri, 20 Jul 2018 14:32:34 +0100 Committer: Ingo Molnar CommitDate: Mon, 10 Sep 2018 11:05:48 +0200 sched/topology, arch/arm: Rebuild sched_domain hierarchy when CPU capacity changes Asymmetric CPU capacity can not necessarily be determined accurately at the time the initial sched_domain hierarchy is built during boot. It is therefore necessary to be able to force a full rebuild of the hierarchy later triggered by the arch_topology driver. A full rebuild requires the arch-code to implement arch_update_cpu_topology() which isn't yet implemented for arm. This patch points the arm implementation to arch_topology driver to ensure that full hierarchy rebuild happens when needed. Signed-off-by: Morten Rasmussen Signed-off-by: Peter Zijlstra (Intel) Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Russell King Cc: Thomas Gleixner Cc: dietmar.eggemann@arm.com Cc: valentin.schneider@arm.com Cc: vincent.guittot@linaro.org Link: http://lkml.kernel.org/r/1532093554-30504-5-git-send-email-morten.rasmussen@arm.com Signed-off-by: Ingo Molnar --- arch/arm/include/asm/topology.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/include/asm/topology.h b/arch/arm/include/asm/topology.h index 5d88d2f22b2c..2a786f54d8b8 100644 --- a/arch/arm/include/asm/topology.h +++ b/arch/arm/include/asm/topology.h @@ -33,6 +33,9 @@ const struct cpumask *cpu_coregroup_mask(int cpu); /* Replace task scheduler's default cpu-invariant accounting */ #define arch_scale_cpu_capacity topology_get_cpu_scale +/* Enable topology flag updates */ +#define arch_update_cpu_topology topology_update_cpu_topology + #else static inline void init_cpu_topology(void) { }