aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorTushar Behera <tushar.behera@linaro.org>2013-03-08 15:59:44 +0530
committerAndrey Konovalov <andrey.konovalov@linaro.org>2014-04-16 23:51:26 +0400
commit1abac5815126c530a36aae170bdbb02d9bed7b7e (patch)
tree104703882b2a101543262a5162b1d24be377cea3 /arch
parentff45a4b55a333f886d082d588b1c2e903078b6e9 (diff)
ARM: EXYNOS: Use wfi macro in platform_do_lowpower
As per commit b3377d186572 ("ARM: 7064/1: vexpress: Use wfi macro in platform_do_lowpower."), wfi macro should be used instead of the hardcoded WFI instruction. This fixes following oops with a kernel compiled in Thumb-2 mode. $ reboot reboot Disabling non-boot CPUs ... IRQ153 no longer affine to CPU1 CPU1: shutdown Internal error: Oops - undefined instruction: 0 [#1] PREEMPT SMP THUMB2 Modules linked in: CPU: 1 Not tainted (3.9.0-rc1-00015-gce76372 #1) PC is at 0xc065858e LR is at exynos_cpu_die+0x53/0xc0 Tested on EXYNOS5250 based Arndale board. Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-exynos/hotplug.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/arm/mach-exynos/hotplug.c b/arch/arm/mach-exynos/hotplug.c
index 5eead530c6f..03cdcd39f71 100644
--- a/arch/arm/mach-exynos/hotplug.c
+++ b/arch/arm/mach-exynos/hotplug.c
@@ -98,13 +98,7 @@ static inline void platform_do_lowpower(unsigned int cpu, int *spurious)
if (cpu == 1)
__raw_writel(0, S5P_ARM_CORE1_CONFIGURATION);
- /*
- * here's the WFI
- */
- asm(".word 0xe320f003\n"
- :
- :
- : "memory", "cc");
+ wfi();
if (pen_release == cpu_logical_map(cpu)) {
/*