| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH][2/2][MIPS] add cpu_wait() to machine_halt() |
| From: | Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> |
| Date: | Wed, 12 Dec 2007 22:23:13 +0900 |
| Cc: | yoichi_yuasa@tripeaks.co.jp, linux-mips <linux-mips@linux-mips.org> |
| In-reply-to: | <20071212222019.9ab7b2ed.yoichi_yuasa@tripeaks.co.jp> |
| Organization: | TriPeaks Corporation |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <20071212222019.9ab7b2ed.yoichi_yuasa@tripeaks.co.jp> |
| Sender: | linux-mips-bounce@linux-mips.org |
Added cpu_wait() to machine_halt().
For the power reduction in halt.
Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
diff -pruN -X mips/Documentation/dontdiff mips-orig/arch/mips/cobalt/reset.c
mips/arch/mips/cobalt/reset.c
--- mips-orig/arch/mips/cobalt/reset.c 2007-10-22 09:32:10.074729000 +0900
+++ mips/arch/mips/cobalt/reset.c 2007-10-22 09:59:23.092786250 +0900
@@ -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))
@@ -35,7 +37,10 @@ void cobalt_machine_halt(void)
local_irq_disable();
printk(KERN_INFO "You can switch the machine off now.\n");
- while (1) ;
+ while (1) {
+ if (cpu_wait)
+ cpu_wait();
+ }
}
void cobalt_machine_restart(char *command)
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH][1/2][MIPS] remove unneeded button check for reset, Yoichi Yuasa |
|---|---|
| Next by Date: | [PATCH][MIPS] move the eXcite local config to excitedirectory, Yoichi Yuasa |
| Previous by Thread: | [PATCH][1/2][MIPS] remove unneeded button check for reset, Yoichi Yuasa |
| Next by Thread: | Re: [PATCH][2/2][MIPS] add cpu_wait() to machine_halt(), Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |