[PATCH] arm: fix use of clock disable on idle for simple AT91 devices

Greg Ungerer gerg at snapgear.com
Tue Sep 7 21:22:12 EDT 2010


Not all types of AT91 device have the PMC hardware unit. Don't do a
clock disable at idle on those family members that don't have it.

Signed-off-by: Greg Ungerer <gerg at uclinux.org>
---
 arch/arm/mach-at91/include/mach/system.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-at91/include/mach/system.h b/arch/arm/mach-at91/include/mach/system.h
index c80e090..0bc497f 100644
--- a/arch/arm/mach-at91/include/mach/system.h
+++ b/arch/arm/mach-at91/include/mach/system.h
@@ -28,7 +28,7 @@
 
 static inline void arch_idle(void)
 {
-#ifndef CONFIG_DEBUG_KERNEL
+#if defined(AT91_PMC) && !defined(CONFIG_DEBUG_KERNEL)
 	/*
 	 * Disable the processor clock.  The processor will be automatically
 	 * re-enabled by an interrupt or by a reset.



More information about the linux-arm-kernel mailing list