diff options
author | Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> | 2008-07-11 09:39:14 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-07-15 13:44:36 -0400 |
commit | 9ecb1ff1b295a515b21d0ac83d8bd39b07335aab (patch) | |
tree | f58dd4574b324678420cf2a812b0e7947de8f14d /arch/mips/gt64120/wrppmc | |
parent | 5b438c44082d9f09fed10f3621fe8d5c93d3676d (diff) |
[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/gt64120/wrppmc')
-rw-r--r-- | arch/mips/gt64120/wrppmc/reset.c | 9 |
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 @@ | |||
5 | * | 5 | * |
6 | * Copyright (C) 1997 Ralf Baechle | 6 | * Copyright (C) 1997 Ralf Baechle |
7 | */ | 7 | */ |
8 | #include <linux/irqflags.h> | ||
8 | #include <linux/kernel.h> | 9 | #include <linux/kernel.h> |
9 | 10 | ||
10 | #include <asm/cacheflush.h> | 11 | #include <asm/cacheflush.h> |
11 | #include <asm/mipsregs.h> | 12 | #include <asm/mipsregs.h> |
13 | #include <asm/processor.h> | ||
12 | 14 | ||
13 | void wrppmc_machine_restart(char *command) | 15 | void wrppmc_machine_restart(char *command) |
14 | { | 16 | { |
@@ -32,11 +34,8 @@ void wrppmc_machine_halt(void) | |||
32 | 34 | ||
33 | printk(KERN_NOTICE "You can safely turn off the power\n"); | 35 | printk(KERN_NOTICE "You can safely turn off the power\n"); |
34 | while (1) { | 36 | while (1) { |
35 | __asm__( | 37 | if (cpu_wait) |
36 | ".set\tmips3\n\t" | 38 | cpu_wait(); |
37 | "wait\n\t" | ||
38 | ".set\tmips0" | ||
39 | ); | ||
40 | } | 39 | } |
41 | } | 40 | } |
42 | 41 | ||