| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH][4/9][MIPS] add cpu_wait to cobalt_machine_halt. |
| From: | Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> |
| Date: | Fri, 14 Sep 2007 17:14:35 +0900 |
| Cc: | yoichi_yuasa@tripeaks.co.jp, linux-mips <linux-mips@linux-mips.org> |
| In-reply-to: | <20070914164228.333da5d9.yoichi_yuasa@tripeaks.co.jp> |
| Organization: | TriPeaks Corporation |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <20070914164228.333da5d9.yoichi_yuasa@tripeaks.co.jp> |
| Sender: | linux-mips-bounce@linux-mips.org |
Add cpu_wait to cobalt_machine_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-09-14 16:14:16.279524250 +0900
+++ mips/arch/mips/cobalt/reset.c 2007-09-14 16:15:40.136765000 +0900
@@ -11,13 +11,18 @@
#include <linux/irqflags.h>
#include <linux/kernel.h>
+#include <asm/processor.h>
+
#include <cobalt.h>
void cobalt_machine_halt(void)
{
local_irq_disable();
printk("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 3/3][MIPS] GPIO LED driver for the WGT634U machine, Aurelien Jarno |
|---|---|
| Next by Date: | [PATCH][5/9][MIPS] move Cobalt UART base address definition., Yoichi Yuasa |
| Previous by Thread: | Re: [PATCH 2/3][MIPS] Add gpio support to the BCM947xx platform, Aurelien Jarno |
| Next by Thread: | [PATCH][5/9][MIPS] move Cobalt UART base address definition., Yoichi Yuasa |
| Indexes: | [Date] [Thread] [Top] [All Lists] |