Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa417806 authored by Yoichi Yuasa's avatar Yoichi Yuasa Committed by Ralf Baechle
Browse files

[MIPS] VR41xx: replace infinite loop with hibernate

parent 2f2a2d99
Loading
Loading
Loading
Loading
+2 −9
Original line number Original line Diff line number Diff line
@@ -91,14 +91,7 @@ static void vr41xx_halt(void)
{
{
	local_irq_disable();
	local_irq_disable();
	printk(KERN_NOTICE "\nYou can turn off the power supply\n");
	printk(KERN_NOTICE "\nYou can turn off the power supply\n");
	while (1) ;
	__asm__("hibernate;\n");
}

static void vr41xx_power_off(void)
{
	local_irq_disable();
	printk(KERN_NOTICE "\nYou can turn off the power supply\n");
	while (1) ;
}
}


static int __init vr41xx_pmu_init(void)
static int __init vr41xx_pmu_init(void)
@@ -134,7 +127,7 @@ static int __init vr41xx_pmu_init(void)
	cpu_wait = vr41xx_cpu_wait;
	cpu_wait = vr41xx_cpu_wait;
	_machine_restart = vr41xx_restart;
	_machine_restart = vr41xx_restart;
	_machine_halt = vr41xx_halt;
	_machine_halt = vr41xx_halt;
	pm_power_off = vr41xx_power_off;
	pm_power_off = vr41xx_halt;


	return 0;
	return 0;
}
}