Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 375939
b: refs/heads/master
c: f91a148
h: refs/heads/master
i:
  375937: 5a94f90
  375935: 15dea30
v: v3
  • Loading branch information
Ralf Baechle committed May 21, 2013
1 parent 55471a6 commit 6224679
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 00baf8576c29c93a470bdfc98a5c121a49c2f34b
refs/heads/master: f91a148aa22b3808c12525ccc5779ff0ae6314a4
39 changes: 21 additions & 18 deletions trunk/arch/mips/kernel/idle.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,15 @@ void r4k_wait_irqoff(void)
{
local_irq_disable();
if (!need_resched())
__asm__(" .set push \n"
" .set mips3 \n"
" wait \n"
" .set pop \n");
__asm__(
" .set push \n"
" .set mips3 \n"
" wait \n"
" .set pop \n");
local_irq_enable();
__asm__(" .globl __pastwait \n"
"__pastwait: \n");
__asm__(
" .globl __pastwait \n"
"__pastwait: \n");
}

/*
Expand Down Expand Up @@ -94,18 +96,19 @@ static void rm7k_wait_irqoff(void)
*/
static void au1k_wait(void)
{
__asm__(" .set mips3 \n"
" cache 0x14, 0(%0) \n"
" cache 0x14, 32(%0) \n"
" sync \n"
" nop \n"
" wait \n"
" nop \n"
" nop \n"
" nop \n"
" nop \n"
" .set mips0 \n"
: : "r" (au1k_wait));
__asm__(
" .set mips3 \n"
" cache 0x14, 0(%0) \n"
" cache 0x14, 32(%0) \n"
" sync \n"
" nop \n"
" wait \n"
" nop \n"
" nop \n"
" nop \n"
" nop \n"
" .set mips0 \n"
: : "r" (au1k_wait));
}

static int __initdata nowait;
Expand Down

0 comments on commit 6224679

Please sign in to comment.