diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2013-05-21 06:58:08 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-05-21 19:34:25 -0400 |
commit | f91a148aa22b3808c12525ccc5779ff0ae6314a4 (patch) | |
tree | 1f18655636fda25335c57c0f8b71499cd1626348 /arch/mips/kernel/idle.c | |
parent | 00baf8576c29c93a470bdfc98a5c121a49c2f34b (diff) |
MIPS: Idle: Consistently reformat inline assembler.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/idle.c')
-rw-r--r-- | arch/mips/kernel/idle.c | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/arch/mips/kernel/idle.c b/arch/mips/kernel/idle.c index 28abda73126a..b33875bf699d 100644 --- a/arch/mips/kernel/idle.c +++ b/arch/mips/kernel/idle.c | |||
@@ -57,13 +57,15 @@ void r4k_wait_irqoff(void) | |||
57 | { | 57 | { |
58 | local_irq_disable(); | 58 | local_irq_disable(); |
59 | if (!need_resched()) | 59 | if (!need_resched()) |
60 | __asm__(" .set push \n" | 60 | __asm__( |
61 | " .set mips3 \n" | 61 | " .set push \n" |
62 | " wait \n" | 62 | " .set mips3 \n" |
63 | " .set pop \n"); | 63 | " wait \n" |
64 | " .set pop \n"); | ||
64 | local_irq_enable(); | 65 | local_irq_enable(); |
65 | __asm__(" .globl __pastwait \n" | 66 | __asm__( |
66 | "__pastwait: \n"); | 67 | " .globl __pastwait \n" |
68 | "__pastwait: \n"); | ||
67 | } | 69 | } |
68 | 70 | ||
69 | /* | 71 | /* |
@@ -94,18 +96,19 @@ static void rm7k_wait_irqoff(void) | |||
94 | */ | 96 | */ |
95 | static void au1k_wait(void) | 97 | static void au1k_wait(void) |
96 | { | 98 | { |
97 | __asm__(" .set mips3 \n" | 99 | __asm__( |
98 | " cache 0x14, 0(%0) \n" | 100 | " .set mips3 \n" |
99 | " cache 0x14, 32(%0) \n" | 101 | " cache 0x14, 0(%0) \n" |
100 | " sync \n" | 102 | " cache 0x14, 32(%0) \n" |
101 | " nop \n" | 103 | " sync \n" |
102 | " wait \n" | 104 | " nop \n" |
103 | " nop \n" | 105 | " wait \n" |
104 | " nop \n" | 106 | " nop \n" |
105 | " nop \n" | 107 | " nop \n" |
106 | " nop \n" | 108 | " nop \n" |
107 | " .set mips0 \n" | 109 | " nop \n" |
108 | : : "r" (au1k_wait)); | 110 | " .set mips0 \n" |
111 | : : "r" (au1k_wait)); | ||
109 | } | 112 | } |
110 | 113 | ||
111 | static int __initdata nowait; | 114 | static int __initdata nowait; |