Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2567336imm; Mon, 10 Sep 2018 03:14:25 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYEUKkcs70xytfutcYHPuNXgf+B6G7mJ6YI7MY/SyKknxdmqAaqSNP8v17GSrjBWcE6Gh1q X-Received: by 2002:a62:54c7:: with SMTP id i190-v6mr22618715pfb.155.1536574465883; Mon, 10 Sep 2018 03:14:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536574465; cv=none; d=google.com; s=arc-20160816; b=gVainKkZvaHEEJu6fURhVi7GJcwavMbQCzloRuX/Z0tnThXoLtHr+tpExJxDGZlYRW pcvg4QKD7JehJT5PTw1ODRaD9FXKYa9+uOm+KCm2XaOhPyYCc3t0HH0rmmNCqVo83PPB WJVmAMUTuffjegae0GSv1z1YgEeu9am3vttqmrNg+soIvYAp1wLvFIPc3POx+q18oL5s Sj/eTKnEcqgsY0eBdr1tIGYn/KVEXtRTx2gbcj3Z1wloVUC8W+HKEeIBxtepHAC2Y6NG 3+WK8e+NKw5/d+qy8PfU7/a3RvTkAR9xKkyEi4uB4QiPd6OJW/+MeIspEXslefXLYKpL Hb3w== 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=zpq2VCv4pY6oobAfQIIHCcDxrrNXphsAlMtepaK7He8=; b=i581iGRxsKt/uxr/Z6he7+Nc+K+BNojifA+vZ9JrOItrvfQ4pOzcdm+oF5mJ5nRw9u FK/TrR5ioj2tmoLMfvLTS5VmUs4BVSEzhIBNa+6uMbYZIN0UiWBpCp4yTbYkwUrwJbUE OAu3K4X3sMzsLaZfDvaoU8vxBZyj3wZTITGf0ZDSDRYWzbyvih1Nl1LlBD9ONb7nCKBx DG/fkm+8O5n3iqW2o7WNLefQxlDNflJwxYw1PozQkgXxLYpwJG1tQfTCa8uoKmMtwpJX LmtlQGVzHhPsINUa5zwgzwZdBpNk444UNJrrIr3L8nRh0ifvVb8TJrtokzkFFiiVg7TF b3bw== 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 a21-v6si16424184pfo.68.2018.09.10.03.14.09; Mon, 10 Sep 2018 03:14:25 -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 S1728087AbeIJPFy (ORCPT + 99 others); Mon, 10 Sep 2018 11:05:54 -0400 Received: from terminus.zytor.com ([198.137.202.136]:41211 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727614AbeIJPFy (ORCPT ); Mon, 10 Sep 2018 11:05:54 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w8AACEW71807706 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 10 Sep 2018 03:12:14 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w8AACDlq1807703; Mon, 10 Sep 2018 03:12:13 -0700 Date: Mon, 10 Sep 2018 03:12:13 -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: torvalds@linux-foundation.org, tglx@linutronix.de, will.deacon@arm.com, peterz@infradead.org, mingo@kernel.org, hpa@zytor.com, linux-kernel@vger.kernel.org, morten.rasmussen@arm.com, catalin.marinas@arm.com Reply-To: catalin.marinas@arm.com, morten.rasmussen@arm.com, linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@kernel.org, peterz@infradead.org, will.deacon@arm.com, tglx@linutronix.de, torvalds@linux-foundation.org In-Reply-To: <1532093554-30504-4-git-send-email-morten.rasmussen@arm.com> References: <1532093554-30504-4-git-send-email-morten.rasmussen@arm.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:sched/core] sched/topology, arch/arm64: Rebuild the sched_domain hierarchy when the CPU capacity changes Git-Commit-ID: 3ba09df4b8b6e3f01ed6381e8fb890840fd0bca3 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: 3ba09df4b8b6e3f01ed6381e8fb890840fd0bca3 Gitweb: https://git.kernel.org/tip/3ba09df4b8b6e3f01ed6381e8fb890840fd0bca3 Author: Morten Rasmussen AuthorDate: Fri, 20 Jul 2018 14:32:33 +0100 Committer: Ingo Molnar CommitDate: Mon, 10 Sep 2018 11:05:47 +0200 sched/topology, arch/arm64: Rebuild the sched_domain hierarchy when the 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 arm64. This patch points the arm64 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: Catalin Marinas Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Will Deacon Cc: dietmar.eggemann@arm.com Cc: valentin.schneider@arm.com Cc: vincent.guittot@linaro.org Link: http://lkml.kernel.org/r/1532093554-30504-4-git-send-email-morten.rasmussen@arm.com Signed-off-by: Ingo Molnar --- arch/arm64/include/asm/topology.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/include/asm/topology.h b/arch/arm64/include/asm/topology.h index 49a0fee4f89b..0524f2438649 100644 --- a/arch/arm64/include/asm/topology.h +++ b/arch/arm64/include/asm/topology.h @@ -45,6 +45,9 @@ int pcibus_to_node(struct pci_bus *bus); /* 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 + #include #endif /* _ASM_ARM_TOPOLOGY_H */