aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-05-28 11:44:36 -0400
committerWill Deacon <will.deacon@arm.com>2018-05-29 11:53:16 -0400
commit73acc0315cd72174729141856c6607d1c91419cb (patch)
tree2b34293726a67a9eb3cc11b750fb6b6216ff3c30
parent984e9cf1b9eaab08e4f1f082ce49ed2670e99d90 (diff)
ARM: mcpm, perf/arm-cci: export mcpm_is_available
Now that the ARM CCI PMU driver can be built as a loadable module, we get a link failure when MCPM is enabled: ERROR: "mcpm_is_available" [drivers/perf/arm-cci.ko] undefined! The simplest fix is to export that helper function. Fixes: 8b0c93c20ef7 ("perf/arm-cci: Allow building as a module") Acked-by: Nicolas Pitre <nico@linaro.org> Acked-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Will Deacon <will.deacon@arm.com>
-rw-r--r--arch/arm/common/mcpm_entry.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/common/mcpm_entry.c b/arch/arm/common/mcpm_entry.c
index 2b913f17d50f..ad574d20415c 100644
--- a/arch/arm/common/mcpm_entry.c
+++ b/arch/arm/common/mcpm_entry.c
@@ -9,6 +9,7 @@
9 * published by the Free Software Foundation. 9 * published by the Free Software Foundation.
10 */ 10 */
11 11
12#include <linux/export.h>
12#include <linux/kernel.h> 13#include <linux/kernel.h>
13#include <linux/init.h> 14#include <linux/init.h>
14#include <linux/irqflags.h> 15#include <linux/irqflags.h>
@@ -174,6 +175,7 @@ bool mcpm_is_available(void)
174{ 175{
175 return (platform_ops) ? true : false; 176 return (platform_ops) ? true : false;
176} 177}
178EXPORT_SYMBOL_GPL(mcpm_is_available);
177 179
178/* 180/*
179 * We can't use regular spinlocks. In the switcher case, it is possible 181 * We can't use regular spinlocks. In the switcher case, it is possible