From: Peter Chubb on

From Linus's tree, 2.6.35-rc5, attempting to compile gives errors in
system.h, because the AT91x40 does not have useful performance
management counters. This patch avoids that problem.

Signed-off-by: Peter Chubb <peter.chubb(a)nicta.com.au>

Index: linux-2.6.x/arch/arm/mach-at91/include/mach/system.h
===================================================================
--- linux-2.6.x.orig/arch/arm/mach-at91/include/mach/system.h 2010-07-14 09:07:21.046719584 +1000
+++ linux-2.6.x/arch/arm/mach-at91/include/mach/system.h 2010-07-14 09:07:50.426638015 +1000
@@ -28,7 +28,7 @@

static inline void arch_idle(void)
{
-#ifndef CONFIG_DEBUG_KERNEL
+#if !defined(CONFIG_DEBUG_KERNEL) && defined(AT91_PMC)
/*
* Disable the processor clock. The processor will be automatically
* re-enabled by an interrupt or by a reset.



--
Dr Peter Chubb peter DOT chubb AT nicta.com.au
http://www.ertos.nicta.com.au ERTOS within National ICT Australia
All things shall perish from under the sky/Music alone shall live, never to die
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/