[PATCH 6/8] ARM: ux500: use generic cpu idle function for wfi
Sanjay Singh Rawat
sanjay.rawat at linaro.org
Mon May 27 10:32:43 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-ux500/hotplug.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-ux500/hotplug.c b/arch/arm/mach-ux500/hotplug.c
index 2bc00b0..f4ded92 100644
--- a/arch/arm/mach-ux500/hotplug.c
+++ b/arch/arm/mach-ux500/hotplug.c
@@ -25,8 +25,9 @@ void __ref ux500_cpu_die(unsigned int cpu)
{
/* directly enter low power state, skipping secure registers */
for (;;) {
- __asm__ __volatile__("dsb\n\t" "wfi\n\t"
- : : : "memory");
+ /* enter WFI mode */
+ cpu_do_idle();
+
if (pen_release == cpu_logical_map(cpu)) {
/*
* OK, proper wakeup, we're done
--
1.7.9.5
More information about the linux-arm-kernel
mailing list