ARM: vexpress/MCPM: fix cache disable sequence when CONFIG_FRAME_POINTER=y
authorNicolas Pitre <nicolas.pitre@linaro.org>
Wed, 14 Aug 2013 14:25:14 +0000 (10:25 -0400)
committerOlof Johansson <olof@lixom.net>
Wed, 14 Aug 2013 20:05:42 +0000 (13:05 -0700)
commitfac2e57742d9aa3dbe41860280352efda9d5566e
treef57b0c2ff1ebf3a0d4b69aa2141d14c6fa22050a
parentf2d6e550a23e6ea5aca70817ada87b78f2b8c6c1
ARM: vexpress/MCPM: fix cache disable sequence when CONFIG_FRAME_POINTER=y

If CONFIG_FRAME_POINTER=y we get the following error:

arch/arm/mach-vexpress/tc2_pm.c: In function 'tc2_pm_down':
arch/arm/mach-vexpress/tc2_pm.c:200:1: error: fp cannot be used in asm here

Let's fix that by explicitly preserving r11 on the stack and removing it
from the clobber list.

Reported-by: Russell King <rmk+kernel@arm.linux.org.uk>
Reviewed-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-vexpress/dcscb.c
arch/arm/mach-vexpress/tc2_pm.c