From patchwork Thu Jul 6 09:49:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dietmar Eggemann X-Patchwork-Id: 107103 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp1882759qge; Thu, 6 Jul 2017 02:52:00 -0700 (PDT) X-Received: by 10.99.56.82 with SMTP id h18mr25456229pgn.52.1499334720810; Thu, 06 Jul 2017 02:52:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499334720; cv=none; d=google.com; s=arc-20160816; b=SKOMRPgJWWnH12z1RA3QK9M9CCgApX5GwKcviCrlnSOnznC2UWodLhfXDSp7kjr3cW LTCpUm2xF9jT7Xkflg2u0b9H3+2LvsBepcfI64cR+zycfeW558cgnMWj0liAzD9rQ63v hD0nErvKBY/yUbIfrjlg+/h6wlZPq+Vc+kqq9GKDBYuq8XY3Ehah5oJcARYeDL34ZyIc B5bI1rfFW+0OtSjN5CbxP8whvY4mD12wPVbVMsiiSdbPfsOZ4MQlDcGKRB36v+uIW2OY qVyBSBh1hGcrzEeA5asSX0FZzomEEDQsUnh7ER1gw5ACYC3HMH4z6Za5wUyy35i8rIxz bgcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=UGj4VNoMuA0gAqJGLsZ5k9seYE29/faBuegz7os5Zg0=; b=qCZq8SJUXTO0oFDsSAHEJPBI5Xa4StUImszwp7bO1qifw5e8PVUUx57UGR9CIKYrPM jR/6rInZWpfyqd2p3K40ZJjBw7RfyasVX5wvUvcNL7AFOzSHHEoj4AkW2b/le8LU8orl CQ+hqqOCwc19j36u3367clWsfpBvi8or28iG+nh24INk1tzQY1qMeOO1IKDQbts33X92 9axqp7xWatCjDZCzvKQ34CiChX6p0vZVCAnCuz+7wvA1dH3UUGcFxxOqQjyL85XlF2od 3RY7C6NmwAlKxBCwNQ76ZH8KxDE1uFcCTgaMS874D0IG5Q6OlTvxWnOmZwSJ7lJtPAQQ crsA== 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 o81si1160949pfi.131.2017.07.06.02.52.00; Thu, 06 Jul 2017 02:52:00 -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 S1752466AbdGFJue (ORCPT + 25 others); Thu, 6 Jul 2017 05:50:34 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:36160 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752257AbdGFJuc (ORCPT ); Thu, 6 Jul 2017 05:50:32 -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 7DBF61684; Thu, 6 Jul 2017 02:50:31 -0700 (PDT) Received: from e107985-lin.cambridge.arm.com (e107985-lin.cambridge.arm.com [10.1.210.41]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 7C3D63F3E1; Thu, 6 Jul 2017 02:50:29 -0700 (PDT) From: Dietmar Eggemann To: linux-kernel@vger.kernel.org Cc: linux-pm@vger.kernel.org, linux@arm.linux.org.uk, Greg Kroah-Hartman , Russell King , Catalin Marinas , Will Deacon , Juri Lelli , Vincent Guittot , Peter Zijlstra , Morten Rasmussen , Viresh Kumar , "Rafael J . Wysocki" Subject: [PATCH v2 07/10] arm64: wire cpufreq input data for frequency-invariant accounting up to the arch Date: Thu, 6 Jul 2017 10:49:45 +0100 Message-Id: <20170706094948.8779-8-dietmar.eggemann@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170706094948.8779-1-dietmar.eggemann@arm.com> References: <20170706094948.8779-1-dietmar.eggemann@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Define arch_set_freq_scale to be the arch_topology "driver" function topology_set_freq_scale() to let FIE work correctly. Cc: Catalin Marinas Cc: Will Deacon Cc: Juri Lelli Signed-off-by: Dietmar Eggemann --- arch/arm64/include/asm/topology.h | 5 +++++ arch/arm64/kernel/topology.c | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) -- 2.11.0 Reviewed-by: Viresh Kumar diff --git a/arch/arm64/include/asm/topology.h b/arch/arm64/include/asm/topology.h index 8b57339823e9..d9cbb289e295 100644 --- a/arch/arm64/include/asm/topology.h +++ b/arch/arm64/include/asm/topology.h @@ -32,6 +32,11 @@ int pcibus_to_node(struct pci_bus *bus); #endif /* CONFIG_NUMA */ +#include + +/* Subscribe for input data for frequency-invariant load-tracking */ +#define arch_set_freq_scale topology_set_freq_scale + #include #endif /* _ASM_ARM_TOPOLOGY_H */ diff --git a/arch/arm64/kernel/topology.c b/arch/arm64/kernel/topology.c index 79244c75eaec..6cbb6315e493 100644 --- a/arch/arm64/kernel/topology.c +++ b/arch/arm64/kernel/topology.c @@ -11,7 +11,6 @@ * for more details. */ -#include #include #include #include