All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: fix mistaken dependency for CPU_HAS_PMU
@ 2011-05-18  2:34 ` tom.leiming at gmail.com
  0 siblings, 0 replies; 8+ messages in thread
From: tom.leiming @ 2011-05-18  2:34 UTC (permalink / raw)
  To: linux; +Cc: linux-arm-kernel, will.deacon, Ming Lei, linux-omap

From: Ming Lei <tom.leiming@gmail.com>

Obviously it is mistake for CPU_HAS_PMU to depend on
(!ARCH_OMAP3 || OMAP3_EMU).

No mattery it is omap3 or not, we can build pmu.o into
kernel safely. In fact, arm-v7 of omap3 has pmu inside
also.

So fix it that we can build pmu into kernel to support perf
for some valid config(such as enable both omap4 and omap3,
but OMAP3_EMU).

Cc: Will Deacon <will.deacon@arm.com>
Cc: linux-omap@vger.kernel.org
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
---
 arch/arm/Kconfig |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 377a7a5..ba314d5 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1061,8 +1061,7 @@ config XSCALE_PMU
 	default y
 
 config CPU_HAS_PMU
-	depends on (CPU_V6 || CPU_V6K || CPU_V7 || XSCALE_PMU) && \
-		   (!ARCH_OMAP3 || OMAP3_EMU)
+	depends on CPU_V6 || CPU_V6K || CPU_V7 || XSCALE_PMU
 	default y
 	bool
 
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-05-18  9:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-18  2:34 [PATCH] ARM: fix mistaken dependency for CPU_HAS_PMU tom.leiming
2011-05-18  2:34 ` tom.leiming at gmail.com
2011-05-18  8:47 ` Will Deacon
2011-05-18  8:47 ` Will Deacon
     [not found] ` <4785097973995347565@unknownmsgid>
2011-05-18  9:31   ` Ming Lei
2011-05-18  9:31     ` Ming Lei
2011-05-18  9:53     ` Will Deacon
2011-05-18  9:53     ` Will Deacon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.