From: Yoichi Yuasa Date: Wed, 12 Dec 2007 13:23:13 +0000 (+0900) Subject: [MIPS] add cpu_wait() to machine_halt() X-Git-Tag: upstream/snapshot3+hdmi~28344^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=167da469e521ec608f632137a63c827f175e2679;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.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 c3d1baa..516b442 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)