MIPS: Idle: Consistently reformat inline assembler.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
00baf8576c
commit
f91a148aa2
1 changed files with 21 additions and 18 deletions
|
@ -57,13 +57,15 @@ void r4k_wait_irqoff(void)
|
||||||
{
|
{
|
||||||
local_irq_disable();
|
local_irq_disable();
|
||||||
if (!need_resched())
|
if (!need_resched())
|
||||||
__asm__(" .set push \n"
|
__asm__(
|
||||||
" .set mips3 \n"
|
" .set push \n"
|
||||||
" wait \n"
|
" .set mips3 \n"
|
||||||
" .set pop \n");
|
" wait \n"
|
||||||
|
" .set pop \n");
|
||||||
local_irq_enable();
|
local_irq_enable();
|
||||||
__asm__(" .globl __pastwait \n"
|
__asm__(
|
||||||
"__pastwait: \n");
|
" .globl __pastwait \n"
|
||||||
|
"__pastwait: \n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -94,18 +96,19 @@ static void rm7k_wait_irqoff(void)
|
||||||
*/
|
*/
|
||||||
static void au1k_wait(void)
|
static void au1k_wait(void)
|
||||||
{
|
{
|
||||||
__asm__(" .set mips3 \n"
|
__asm__(
|
||||||
" cache 0x14, 0(%0) \n"
|
" .set mips3 \n"
|
||||||
" cache 0x14, 32(%0) \n"
|
" cache 0x14, 0(%0) \n"
|
||||||
" sync \n"
|
" cache 0x14, 32(%0) \n"
|
||||||
" nop \n"
|
" sync \n"
|
||||||
" wait \n"
|
" nop \n"
|
||||||
" nop \n"
|
" wait \n"
|
||||||
" nop \n"
|
" nop \n"
|
||||||
" nop \n"
|
" nop \n"
|
||||||
" nop \n"
|
" nop \n"
|
||||||
" .set mips0 \n"
|
" nop \n"
|
||||||
: : "r" (au1k_wait));
|
" .set mips0 \n"
|
||||||
|
: : "r" (au1k_wait));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int __initdata nowait;
|
static int __initdata nowait;
|
||||||
|
|
Loading…
Add table
Reference in a new issue