diff options
author | Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> | 2007-12-12 08:23:13 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-01-29 05:15:00 -0500 |
commit | 167da469e521ec608f632137a63c827f175e2679 (patch) | |
tree | 47934807a166c56d0ad9557b0ce2411900df9a3d /arch | |
parent | 71466dd477c7a67d188d1d8310c7016a88531a04 (diff) |
[MIPS] add cpu_wait() to machine_halt()
Added cpu_wait() to machine_halt().
For the power reduction in halt.
Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/cobalt/reset.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/mips/cobalt/reset.c b/arch/mips/cobalt/reset.c index c3d1baa5bcf1..516b4428df4e 100644 --- a/arch/mips/cobalt/reset.c +++ b/arch/mips/cobalt/reset.c | |||
@@ -12,6 +12,8 @@ | |||
12 | #include <linux/io.h> | 12 | #include <linux/io.h> |
13 | #include <linux/leds.h> | 13 | #include <linux/leds.h> |
14 | 14 | ||
15 | #include <asm/processor.h> | ||
16 | |||
15 | #include <cobalt.h> | 17 | #include <cobalt.h> |
16 | 18 | ||
17 | #define RESET_PORT ((void __iomem *)CKSEG1ADDR(0x1c000000)) | 19 | #define RESET_PORT ((void __iomem *)CKSEG1ADDR(0x1c000000)) |
@@ -34,7 +36,10 @@ void cobalt_machine_halt(void) | |||
34 | led_trigger_event(power_off_led_trigger, LED_FULL); | 36 | led_trigger_event(power_off_led_trigger, LED_FULL); |
35 | 37 | ||
36 | local_irq_disable(); | 38 | local_irq_disable(); |
37 | while (1) ; | 39 | while (1) { |
40 | if (cpu_wait) | ||
41 | cpu_wait(); | ||
42 | } | ||
38 | } | 43 | } |
39 | 44 | ||
40 | void cobalt_machine_restart(char *command) | 45 | void cobalt_machine_restart(char *command) |