summaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorYoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>2008-07-11 22:39:14 +0900
committerRalf Baechle <ralf@linux-mips.org>2008-07-15 18:44:36 +0100
commit9ecb1ff1b295a515b21d0ac83d8bd39b07335aab (patch)
treef58dd4574b324678420cf2a812b0e7947de8f14d /arch/mips
parent5b438c44082d9f09fed10f3621fe8d5c93d3676d (diff)
downloadtalos-obmc-linux-9ecb1ff1b295a515b21d0ac83d8bd39b07335aab.tar.gz
talos-obmc-linux-9ecb1ff1b295a515b21d0ac83d8bd39b07335aab.zip
[MIPS] replace inline assembler to cpu_wait()
Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/gt64120/wrppmc/reset.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/mips/gt64120/wrppmc/reset.c b/arch/mips/gt64120/wrppmc/reset.c
index c355cff38f6c..e66c87164a02 100644
--- a/arch/mips/gt64120/wrppmc/reset.c
+++ b/arch/mips/gt64120/wrppmc/reset.c
@@ -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)
{
@@ -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();
}
}
OpenPOWER on IntegriCloud