Skip to content

Commit

Permalink
[MIPS] add cpu_wait() to machine_halt()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yoichi Yuasa authored and ralfbaechle committed Jan 29, 2008
1 parent 71466dd commit 167da46
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion arch/mips/cobalt/reset.c
Expand Up @@ -12,6 +12,8 @@
#include <linux/io.h>
#include <linux/leds.h>

#include <asm/processor.h>

#include <cobalt.h>

#define RESET_PORT ((void __iomem *)CKSEG1ADDR(0x1c000000))
Expand All @@ -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)
Expand Down

0 comments on commit 167da46

Please sign in to comment.