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)
committerJon Medhurst <tixy@linaro.org>
Mon, 2 Dec 2013 12:54:16 +0000 (12:54 +0000)
commit9902091e1e4aa3ff94e525c2a9ed3632698cd28f
tree76c8f57e48727eea9bd65af876a42e0c6f4f96ae
parent4c35ee5ab39fb4ab30662edbfc7b6ea5c88943f2
ARM: vexpress/MCPM: fix cache disable sequence when CONFIG_FRAME_POINTER=y

Commit fac2e57742d9aa3dbe41860280352efda9d5566e upstream

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>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
arch/arm/mach-vexpress/dcscb.c
arch/arm/mach-vexpress/tc2_pm.c