Skip to content

Commit

Permalink
[MIPS] VR41xx: replace infinite loop with hibernate
Browse files Browse the repository at this point in the history
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 Ralf Baechle committed Oct 11, 2007
1 parent 2f2a2d9 commit fa41780
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions arch/mips/vr41xx/common/pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit fa41780

Please sign in to comment.