Skip to content

Commit

Permalink
[MIPS] replace inline assembler to cpu_wait()
Browse files Browse the repository at this point in the history
Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Yoichi Yuasa authored and Ralf Baechle committed Jul 15, 2008
1 parent 5b438c4 commit 9ecb1ff
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions arch/mips/gt64120/wrppmc/reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
*
* Copyright (C) 1997 Ralf Baechle
*/
#include <linux/irqflags.h>
#include <linux/kernel.h>

#include <asm/cacheflush.h>
#include <asm/mipsregs.h>
#include <asm/processor.h>

void wrppmc_machine_restart(char *command)
{
Expand All @@ -32,11 +34,8 @@ void wrppmc_machine_halt(void)

printk(KERN_NOTICE "You can safely turn off the power\n");
while (1) {
__asm__(
".set\tmips3\n\t"
"wait\n\t"
".set\tmips0"
);
if (cpu_wait)
cpu_wait();
}
}

Expand Down

0 comments on commit 9ecb1ff

Please sign in to comment.