aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Rutland <mark.rutland@arm.com>2017-06-13 08:45:51 -0400
committerWill Deacon <will.deacon@arm.com>2017-06-15 06:10:33 -0400
commitbddb9b68d3fb0dfbd75715bce6160c40d4dae233 (patch)
tree6680e1778314fcef6d8545a908906adc9664642b
parentd5f7b828ffab28e5684913e76697e94e2442d164 (diff)
drivers/perf: commonise PERF_EVENTS dependency
All PMU drivers are going to depend on PERF_EVENTS, so let's make this dependency common and simplify the individual Kconfig entries. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Cc: Will Deacon <will.deacon@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
-rw-r--r--drivers/perf/Kconfig9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/perf/Kconfig b/drivers/perf/Kconfig
index aa587edaf9ea..e5197ffb7422 100644
--- a/drivers/perf/Kconfig
+++ b/drivers/perf/Kconfig
@@ -3,9 +3,10 @@
3# 3#
4 4
5menu "Performance monitor support" 5menu "Performance monitor support"
6 depends on PERF_EVENTS
6 7
7config ARM_PMU 8config ARM_PMU
8 depends on PERF_EVENTS && (ARM || ARM64) 9 depends on ARM || ARM64
9 bool "ARM PMU framework" 10 bool "ARM PMU framework"
10 default y 11 default y
11 help 12 help
@@ -18,7 +19,7 @@ config ARM_PMU_ACPI
18 19
19config QCOM_L2_PMU 20config QCOM_L2_PMU
20 bool "Qualcomm Technologies L2-cache PMU" 21 bool "Qualcomm Technologies L2-cache PMU"
21 depends on ARCH_QCOM && ARM64 && PERF_EVENTS && ACPI 22 depends on ARCH_QCOM && ARM64 && ACPI
22 help 23 help
23 Provides support for the L2 cache performance monitor unit (PMU) 24 Provides support for the L2 cache performance monitor unit (PMU)
24 in Qualcomm Technologies processors. 25 in Qualcomm Technologies processors.
@@ -27,7 +28,7 @@ config QCOM_L2_PMU
27 28
28config QCOM_L3_PMU 29config QCOM_L3_PMU
29 bool "Qualcomm Technologies L3-cache PMU" 30 bool "Qualcomm Technologies L3-cache PMU"
30 depends on ARCH_QCOM && ARM64 && PERF_EVENTS && ACPI 31 depends on ARCH_QCOM && ARM64 && ACPI
31 select QCOM_IRQ_COMBINER 32 select QCOM_IRQ_COMBINER
32 help 33 help
33 Provides support for the L3 cache performance monitor unit (PMU) 34 Provides support for the L3 cache performance monitor unit (PMU)
@@ -36,7 +37,7 @@ config QCOM_L3_PMU
36 monitoring L3 cache events. 37 monitoring L3 cache events.
37 38
38config XGENE_PMU 39config XGENE_PMU
39 depends on PERF_EVENTS && ARCH_XGENE 40 depends on ARCH_XGENE
40 bool "APM X-Gene SoC PMU" 41 bool "APM X-Gene SoC PMU"
41 default n 42 default n
42 help 43 help