| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH][MIPS][2/2] vr41xx: replace infinite loop with hibernate |
| From: | Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> |
| Date: | Thu, 16 Aug 2007 22:27:05 +0900 |
| Cc: | yoichi_yuasa@tripeaks.co.jp, linux-mips@linux-mips.org |
| In-reply-to: | <20070816222011.496f6eb8.yoichi_yuasa@tripeaks.co.jp> |
| Organization: | TriPeaks Corporation |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <20070816222011.496f6eb8.yoichi_yuasa@tripeaks.co.jp> |
| Sender: | linux-mips-bounce@linux-mips.org |
Replace infinite loop with hibernate.
Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
diff -pruN -X mips/Documentation/dontdiff
mips-orig/arch/mips/vr41xx/common/pmu.c mips/arch/mips/vr41xx/common/pmu.c
--- mips-orig/arch/mips/vr41xx/common/pmu.c 2007-08-06 13:21:36.621511000
+0900
+++ mips/arch/mips/vr41xx/common/pmu.c 2007-08-06 13:22:17.712079000 +0900
@@ -91,14 +91,7 @@ static void vr41xx_halt(void)
{
local_irq_disable();
printk(KERN_NOTICE "\nYou can turn off the power supply\n");
- while (1) ;
-}
-
-static void vr41xx_power_off(void)
-{
- local_irq_disable();
- printk(KERN_NOTICE "\nYou can turn off the power supply\n");
- while (1) ;
+ __asm__("hibernate;\n");
}
static int __init vr41xx_pmu_init(void)
@@ -134,7 +127,7 @@ static int __init vr41xx_pmu_init(void)
cpu_wait = vr41xx_cpu_wait;
_machine_restart = vr41xx_restart;
_machine_halt = vr41xx_halt;
- pm_power_off = vr41xx_power_off;
+ pm_power_off = vr41xx_halt;
return 0;
}
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH][MIPS][1/2] vr41xx: add default restart routine, Yoichi Yuasa |
|---|---|
| Next by Date: | [MIPS]mcheck error, POORNIMA R |
| Previous by Thread: | [PATCH][MIPS][1/2] vr41xx: add default restart routine, Yoichi Yuasa |
| Next by Thread: | Re: [PATCH][MIPS][2/2] vr41xx: replace infinite loop with hibernate, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |