summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-realview/hotplug.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2010-12-19 11:36:33 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-12-20 15:09:16 +0000
commite3d9c625f5e4158014e041f492b46e38ad10987e (patch)
treeffd37fad68be917c15a3fbbb44c4eacecde0d649 /arch/arm/mach-realview/hotplug.c
parente9882777d992b76e0b80deadd66ad886c25f5d1f (diff)
downloadblackbird-op-linux-e3d9c625f5e4158014e041f492b46e38ad10987e.tar.gz
blackbird-op-linux-e3d9c625f5e4158014e041f492b46e38ad10987e.zip
ARM: CPU hotplug: fix hard-coded control register constants
Use the definition we've provided in asm/system.h rather than numeric constants. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-realview/hotplug.c')
-rw-r--r--arch/arm/mach-realview/hotplug.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-realview/hotplug.c b/arch/arm/mach-realview/hotplug.c
index b6387cfe7044..a87523d095e6 100644
--- a/arch/arm/mach-realview/hotplug.c
+++ b/arch/arm/mach-realview/hotplug.c
@@ -31,10 +31,10 @@ static inline void cpu_enter_lowpower(void)
" bic %0, %0, #0x20\n"
" mcr p15, 0, %0, c1, c0, 1\n"
" mrc p15, 0, %0, c1, c0, 0\n"
- " bic %0, %0, #0x04\n"
+ " bic %0, %0, %2\n"
" mcr p15, 0, %0, c1, c0, 0\n"
: "=&r" (v)
- : "r" (0)
+ : "r" (0), "Ir" (CR_C)
: "cc");
}
@@ -43,13 +43,13 @@ static inline void cpu_leave_lowpower(void)
unsigned int v;
asm volatile( "mrc p15, 0, %0, c1, c0, 0\n"
- " orr %0, %0, #0x04\n"
+ " orr %0, %0, %1\n"
" mcr p15, 0, %0, c1, c0, 0\n"
" mrc p15, 0, %0, c1, c0, 1\n"
" orr %0, %0, #0x20\n"
" mcr p15, 0, %0, c1, c0, 1\n"
: "=&r" (v)
- :
+ : "Ir" (CR_C)
: "cc");
}
OpenPOWER on IntegriCloud