]> err.no Git - linux-2.6/commitdiff
[MIPS] replace inline assembler to cpu_wait()
authorYoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Fri, 11 Jul 2008 13:39:14 +0000 (22:39 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 15 Jul 2008 17:44:36 +0000 (18:44 +0100)
Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/gt64120/wrppmc/reset.c

index c355cff38f6cdf1e554f999407d51ece87f47fd3..e66c87164a0250374a73f0ece99da8a0815e62f5 100644 (file)
@@ -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();
        }
 }