[PATCH 3/8] ARM: SPEAr: use generic cpu idle function for wfi

Sanjay Singh Rawat sanjay.rawat at linaro.org
Mon May 27 10:32:40 EDT 2013


use cpu_do_idle for entering the wfi mode.

Signed-off-by: Sanjay Singh Rawat <sanjay.rawat at linaro.org>
---
 arch/arm/mach-spear/hotplug.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-spear/hotplug.c b/arch/arm/mach-spear/hotplug.c
index d97749c..6dbd3dc 100644
--- a/arch/arm/mach-spear/hotplug.c
+++ b/arch/arm/mach-spear/hotplug.c
@@ -55,7 +55,8 @@ static inline void cpu_leave_lowpower(void)
 static inline void spear13xx_do_lowpower(unsigned int cpu, int *spurious)
 {
 	for (;;) {
-		wfi();
+		/* enter WFI mode */
+		cpu_do_idle();
 
 		if (pen_release == cpu) {
 			/*
-- 
1.7.9.5




More information about the linux-arm-kernel mailing list