aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBesar Wicaksono <[email protected]>2022-11-16 13:04:55 -0600
committerWill Deacon <[email protected]>2022-11-18 13:31:54 +0000
commite72dbf9085b56bbc19ff332f82adec1891077637 (patch)
treef3c90d5102c1a0a46deb425bf921794c2d38705c
parent1830902eb896824ca313a50f3486645c2df21327 (diff)
perf: arm_cspmu: Fix build failure on x86_64
Building on x86_64 allmodconfig failed: | drivers/perf/arm_cspmu/arm_cspmu.c:1114:29: error: implicit | declaration of function 'get_acpi_id_for_cpu' get_acpi_id_for_cpu is a helper function from ARM64. Fix by adding ARM64 dependency. Signed-off-by: Besar Wicaksono <[email protected]> Reviewed-by: Suzuki K Poulose <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
-rw-r--r--drivers/perf/arm_cspmu/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/perf/arm_cspmu/Kconfig b/drivers/perf/arm_cspmu/Kconfig
index 058223bef661..0b316fe69a45 100644
--- a/drivers/perf/arm_cspmu/Kconfig
+++ b/drivers/perf/arm_cspmu/Kconfig
@@ -4,7 +4,7 @@
config ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU
tristate "ARM Coresight Architecture PMU"
- depends on ACPI
+ depends on ARM64 && ACPI
depends on ACPI_APMT || COMPILE_TEST
help
Provides support for performance monitoring unit (PMU) devices