Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Mark Rutland and committed by
Will Deacon
bddb9b68 d5f7b828

+5 -4
+5 -4
drivers/perf/Kconfig
··· 3 3 # 4 4 5 5 menu "Performance monitor support" 6 + depends on PERF_EVENTS 6 7 7 8 config ARM_PMU 8 - depends on PERF_EVENTS && (ARM || ARM64) 9 + depends on ARM || ARM64 9 10 bool "ARM PMU framework" 10 11 default y 11 12 help ··· 19 18 20 19 config QCOM_L2_PMU 21 20 bool "Qualcomm Technologies L2-cache PMU" 22 - depends on ARCH_QCOM && ARM64 && PERF_EVENTS && ACPI 21 + depends on ARCH_QCOM && ARM64 && ACPI 23 22 help 24 23 Provides support for the L2 cache performance monitor unit (PMU) 25 24 in Qualcomm Technologies processors. ··· 28 27 29 28 config QCOM_L3_PMU 30 29 bool "Qualcomm Technologies L3-cache PMU" 31 - depends on ARCH_QCOM && ARM64 && PERF_EVENTS && ACPI 30 + depends on ARCH_QCOM && ARM64 && ACPI 32 31 select QCOM_IRQ_COMBINER 33 32 help 34 33 Provides support for the L3 cache performance monitor unit (PMU) ··· 37 36 monitoring L3 cache events. 38 37 39 38 config XGENE_PMU 40 - depends on PERF_EVENTS && ARCH_XGENE 39 + depends on ARCH_XGENE 41 40 bool "APM X-Gene SoC PMU" 42 41 default n 43 42 help