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-tegra/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-tegra/hotplug.c')
-rw-r--r-- | arch/arm/mach-tegra/hotplug.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-tegra/hotplug.c b/arch/arm/mach-tegra/hotplug.c index 17faf777af2..a5cb1ce76ff 100644 --- a/arch/arm/mach-tegra/hotplug.c +++ b/arch/arm/mach-tegra/hotplug.c | |||
@@ -26,13 +26,13 @@ static inline void cpu_enter_lowpower(void) | |||
26 | * Turn off coherency | 26 | * Turn off coherency |
27 | */ | 27 | */ |
28 | " mrc p15, 0, %0, c1, c0, 1\n" | 28 | " mrc p15, 0, %0, c1, c0, 1\n" |
29 | " bic %0, %0, #0x20\n" | 29 | " bic %0, %0, %2\n" |
30 | " mcr p15, 0, %0, c1, c0, 1\n" | 30 | " mcr p15, 0, %0, c1, c0, 1\n" |
31 | " mrc p15, 0, %0, c1, c0, 0\n" | 31 | " mrc p15, 0, %0, c1, c0, 0\n" |
32 | " bic %0, %0, #0x04\n" | 32 | " bic %0, %0, #0x04\n" |
33 | " mcr p15, 0, %0, c1, c0, 0\n" | 33 | " mcr p15, 0, %0, c1, c0, 0\n" |
34 | : "=&r" (v) | 34 | : "=&r" (v) |
35 | : "r" (0) | 35 | : "r" (0), "Ir" (CR_C) |
36 | : "cc"); | 36 | : "cc"); |
37 | } | 37 | } |
38 | 38 | ||
@@ -42,13 +42,13 @@ static inline void cpu_leave_lowpower(void) | |||
42 | 42 | ||
43 | asm volatile( | 43 | asm volatile( |
44 | "mrc p15, 0, %0, c1, c0, 0\n" | 44 | "mrc p15, 0, %0, c1, c0, 0\n" |
45 | " orr %0, %0, #0x04\n" | 45 | " orr %0, %0, %1\n" |
46 | " mcr p15, 0, %0, c1, c0, 0\n" | 46 | " mcr p15, 0, %0, c1, c0, 0\n" |
47 | " mrc p15, 0, %0, c1, c0, 1\n" | 47 | " mrc p15, 0, %0, c1, c0, 1\n" |
48 | " orr %0, %0, #0x20\n" | 48 | " orr %0, %0, #0x20\n" |
49 | " mcr p15, 0, %0, c1, c0, 1\n" | 49 | " mcr p15, 0, %0, c1, c0, 1\n" |
50 | : "=&r" (v) | 50 | : "=&r" (v) |
51 | : | 51 | : "Ir" (CR_C) |
52 | : "cc"); | 52 | : "cc"); |
53 | } | 53 | } |
54 | 54 | ||