From 037bc840859c0d52abedeb576888714698f04bcf Mon Sep 17 00:00:00 2001 From: Russell King Date: Sat, 27 Aug 2011 11:17:36 +0100 Subject: ARM: pm: force non-zero return value from __cpu_suspend when aborting Ensure that the return value from __cpu_suspend is non-zero when aborting. Zero indicates a successful suspend occurred. Change-Id: I53afba30ecd8a34ea16f39eaafa07e7b0c127e64 Tested-by: Santosh Shilimkar Tested-by: Shawn Guo Tested-by: Lorenzo Pieralisi Signed-off-by: Russell King Signed-off-by: Varun Wadekar Reviewed-on: http://git-master/r/85669 Reviewed-by: Automatic_Commit_Validation_User --- arch/arm/kernel/sleep.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/kernel/sleep.S b/arch/arm/kernel/sleep.S index e87f5f243012..a723e6b16bf5 100644 --- a/arch/arm/kernel/sleep.S +++ b/arch/arm/kernel/sleep.S @@ -61,6 +61,8 @@ ENDPROC(__cpu_suspend) cpu_suspend_abort: ldmia sp!, {r1 - r3} @ pop v:p, virt SP, phys resume fn + teq r0, #0 + moveq r0, #1 @ force non-zero value mov sp, r2 ldmfd sp!, {r4 - r11, pc} ENDPROC(cpu_suspend_abort) -- cgit v1.2.3