diff options
author | Kevin Hilman <khilman@deeprootsystems.com> | 2010-10-01 17:13:47 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-10-08 05:02:24 -0400 |
commit | c7b0aff44a0740eedd31b759fd08d9e25672fa76 (patch) | |
tree | 02991fc91b0733c6b0f2ce8de2d0741b5ff43ef6 /arch/arm/include/asm/system.h | |
parent | 7511db9d25080d53e5427bf4b8849278c07019bc (diff) |
ARM: 6428/1: add cpu_idle_wait() to support CPUidle on SMP systems.
In order for CPUidle to work on SMP systems, an implementation of
cpu_idle_wait() is needed.
This patch duplicates the x86 implementation of cpu_idle_wait() for
ARM.
Tested-by: Colin Cross <ccross@android.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include/asm/system.h')
-rw-r--r-- | arch/arm/include/asm/system.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/system.h b/arch/arm/include/asm/system.h index 8ba1ccf82a02..48e360c74327 100644 --- a/arch/arm/include/asm/system.h +++ b/arch/arm/include/asm/system.h | |||
@@ -325,6 +325,8 @@ static inline unsigned long __xchg(unsigned long x, volatile void *ptr, int size | |||
325 | extern void disable_hlt(void); | 325 | extern void disable_hlt(void); |
326 | extern void enable_hlt(void); | 326 | extern void enable_hlt(void); |
327 | 327 | ||
328 | void cpu_idle_wait(void); | ||
329 | |||
328 | #include <asm-generic/cmpxchg-local.h> | 330 | #include <asm-generic/cmpxchg-local.h> |
329 | 331 | ||
330 | #if __LINUX_ARM_ARCH__ < 6 | 332 | #if __LINUX_ARM_ARCH__ < 6 |