Commit 9ecb1ff1 authored by Yoichi Yuasa's avatar Yoichi Yuasa Committed by Ralf Baechle

[MIPS] replace inline assembler to cpu_wait()

Signed-off-by: default avatarYoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 5b438c44
...@@ -5,10 +5,12 @@ ...@@ -5,10 +5,12 @@
* *
* Copyright (C) 1997 Ralf Baechle * Copyright (C) 1997 Ralf Baechle
*/ */
#include <linux/irqflags.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <asm/cacheflush.h> #include <asm/cacheflush.h>
#include <asm/mipsregs.h> #include <asm/mipsregs.h>
#include <asm/processor.h>
void wrppmc_machine_restart(char *command) void wrppmc_machine_restart(char *command)
{ {
...@@ -32,11 +34,8 @@ void wrppmc_machine_halt(void) ...@@ -32,11 +34,8 @@ void wrppmc_machine_halt(void)
printk(KERN_NOTICE "You can safely turn off the power\n"); printk(KERN_NOTICE "You can safely turn off the power\n");
while (1) { while (1) {
__asm__( if (cpu_wait)
".set\tmips3\n\t" cpu_wait();
"wait\n\t"
".set\tmips0"
);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment