diff options
author | Rohit Vaswani <rvaswani@codeaurora.org> | 2013-06-21 21:17:37 +0200 |
---|---|---|
committer | Kumar Gala <galak@codeaurora.org> | 2014-02-04 23:25:04 +0100 |
commit | 52b52b4681df8bad450692cf3fa8a61ca1e1599a (patch) | |
tree | 93ed76f17d41f3e8f0125e8f0a22187552ddb034 /arch/arm/mach-msm/hotplug.c | |
parent | ARM: dts: msm: split out msm8660 and msm8960 soc into dts include (diff) | |
download | linux-52b52b4681df8bad450692cf3fa8a61ca1e1599a.tar.xz linux-52b52b4681df8bad450692cf3fa8a61ca1e1599a.zip |
ARM: msm: Remove pen_release usage
pen_release is no longer required as the synchronization
is now managed by generic arm code.
This is done as suggested in https://lkml.org/lkml/2013/6/4/184
Cc: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Kumar Gala <galak@codeaurora.org>
Diffstat (limited to 'arch/arm/mach-msm/hotplug.c')
-rw-r--r-- | arch/arm/mach-msm/hotplug.c | 31 |
1 files changed, 4 insertions, 27 deletions
diff --git a/arch/arm/mach-msm/hotplug.c b/arch/arm/mach-msm/hotplug.c index 326a87261f9a..cea80fc6e48e 100644 --- a/arch/arm/mach-msm/hotplug.c +++ b/arch/arm/mach-msm/hotplug.c @@ -24,33 +24,10 @@ static inline void cpu_leave_lowpower(void) static inline void platform_do_lowpower(unsigned int cpu) { - /* Just enter wfi for now. TODO: Properly shut off the cpu. */ - for (;;) { - /* - * here's the WFI - */ - asm("wfi" - : - : - : "memory", "cc"); - - if (pen_release == cpu_logical_map(cpu)) { - /* - * OK, proper wakeup, we're done - */ - break; - } - - /* - * getting here, means that we have come out of WFI without - * having been woken up - this shouldn't happen - * - * The trouble is, letting people know about this is not really - * possible, since we are currently running incoherently, and - * therefore cannot safely call printk() or anything else - */ - pr_debug("CPU%u: spurious wakeup call\n", cpu); - } + asm("wfi" + : + : + : "memory", "cc"); } /* |