diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-12-19 06:36:33 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-12-20 10:09:16 -0500 |
commit | e3d9c625f5e4158014e041f492b46e38ad10987e (patch) | |
tree | ffd37fad68be917c15a3fbbb44c4eacecde0d649 /arch/arm/mach-realview/hotplug.c | |
parent | e9882777d992b76e0b80deadd66ad886c25f5d1f (diff) |
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.c | 8 |
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) | |||
31 | " bic %0, %0, #0x20\n" | 31 | " bic %0, %0, #0x20\n" |
32 | " mcr p15, 0, %0, c1, c0, 1\n" | 32 | " mcr p15, 0, %0, c1, c0, 1\n" |
33 | " mrc p15, 0, %0, c1, c0, 0\n" | 33 | " mrc p15, 0, %0, c1, c0, 0\n" |
34 | " bic %0, %0, #0x04\n" | 34 | " bic %0, %0, %2\n" |
35 | " mcr p15, 0, %0, c1, c0, 0\n" | 35 | " mcr p15, 0, %0, c1, c0, 0\n" |
36 | : "=&r" (v) | 36 | : "=&r" (v) |
37 | : "r" (0) | 37 | : "r" (0), "Ir" (CR_C) |
38 | : "cc"); | 38 | : "cc"); |
39 | } | 39 | } |
40 | 40 | ||
@@ -43,13 +43,13 @@ static inline void cpu_leave_lowpower(void) | |||
43 | unsigned int v; | 43 | unsigned int v; |
44 | 44 | ||
45 | asm volatile( "mrc p15, 0, %0, c1, c0, 0\n" | 45 | asm volatile( "mrc p15, 0, %0, c1, c0, 0\n" |
46 | " orr %0, %0, #0x04\n" | 46 | " orr %0, %0, %1\n" |
47 | " mcr p15, 0, %0, c1, c0, 0\n" | 47 | " mcr p15, 0, %0, c1, c0, 0\n" |
48 | " mrc p15, 0, %0, c1, c0, 1\n" | 48 | " mrc p15, 0, %0, c1, c0, 1\n" |
49 | " orr %0, %0, #0x20\n" | 49 | " orr %0, %0, #0x20\n" |
50 | " mcr p15, 0, %0, c1, c0, 1\n" | 50 | " mcr p15, 0, %0, c1, c0, 1\n" |
51 | : "=&r" (v) | 51 | : "=&r" (v) |
52 | : | 52 | : "Ir" (CR_C) |
53 | : "cc"); | 53 | : "cc"); |
54 | } | 54 | } |
55 | 55 | ||