提交 167da469 编写于 作者: Y Yoichi Yuasa 提交者: Ralf Baechle

[MIPS] add cpu_wait() to machine_halt()

Added cpu_wait() to machine_halt().
For the power reduction in halt.
Signed-off-by: NYoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 71466dd4
......@@ -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))
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册