ARM: mcpm, perf/arm-cci: export mcpm_is_available
commit73acc0315cd72174729141856c6607d1c91419cb
authorArnd Bergmann <arnd@arndb.de>
Mon, 28 May 2018 15:44:36 +0000 (28 17:44 +0200)
committerWill Deacon <will.deacon@arm.com>
Tue, 29 May 2018 15:53:16 +0000 (29 16:53 +0100)
tree2b34293726a67a9eb3cc11b750fb6b6216ff3c30
parent984e9cf1b9eaab08e4f1f082ce49ed2670e99d90
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>
arch/arm/common/mcpm_entry.c