ARM: 6195/1: OMAP3: pmu: make CPU_HAS_PMU dependent on OMAP3_EMU

CPU performance event counters on v7 cores will only operate
if either the NIDEN or DBGEN signals are driven high.

For the OMAP3 platform, these signals are driven low by default
but DBGEN can be asserted by selecting the OMAP3_EMU Kconfig option,
which enables the virtual clock for hardware debugging peripherals.

Acked-by: Jean Pihet <jpihet@mvista.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by Will Deacon and committed by Russell King 8954bb0d 534be1d5

+2 -1
+2 -1
arch/arm/Kconfig
··· 955 955 default y 956 956 957 957 config CPU_HAS_PMU 958 - depends on CPU_V6 || CPU_V7 || XSCALE_PMU 958 + depends on (CPU_V6 || CPU_V7 || XSCALE_PMU) && \ 959 + (!ARCH_OMAP3 || OMAP3_EMU) 959 960 default y 960 961 bool 961 962