From: Yoichi Yuasa Date: Wed, 12 Dec 2007 13:23:13 +0000 (+0900) Subject: [MIPS] add cpu_wait() to machine_halt() X-Git-Tag: v2.6.25-rc1~1163^2~26 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=167da469e521ec608f632137a63c827f175e2679;p=linux-2.6-omap-h63xx.git [MIPS] add cpu_wait() to machine_halt() Added cpu_wait() to machine_halt(). For the power reduction in halt. Signed-off-by: Yoichi Yuasa Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/cobalt/reset.c b/arch/mips/cobalt/reset.c index c3d1baa5bcf..516b4428df4 100644 --- a/arch/mips/cobalt/reset.c +++ b/arch/mips/cobalt/reset.c @@ -12,6 +12,8 @@ #include #include +#include + #include #define RESET_PORT ((void __iomem *)CKSEG1ADDR(0x1c000000)) @@ -34,7 +36,10 @@ void cobalt_machine_halt(void) led_trigger_event(power_off_led_trigger, LED_FULL); local_irq_disable(); - while (1) ; + while (1) { + if (cpu_wait) + cpu_wait(); + } } void cobalt_machine_restart(char *command)