From 167da469e521ec608f632137a63c827f175e2679 Mon Sep 17 00:00:00 2001 From: Yoichi Yuasa Date: Wed, 12 Dec 2007 22:23:13 +0900 Subject: [PATCH] [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 --- arch/mips/cobalt/reset.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) -- 2.41.1