|
@@ -599,7 +599,8 @@ static void power_down(void)
|
|
|
case HIBERNATION_PLATFORM:
|
|
|
hibernation_platform_enter();
|
|
|
case HIBERNATION_SHUTDOWN:
|
|
|
- kernel_power_off();
|
|
|
+ if (pm_power_off)
|
|
|
+ kernel_power_off();
|
|
|
break;
|
|
|
#ifdef CONFIG_SUSPEND
|
|
|
case HIBERNATION_SUSPEND:
|
|
@@ -627,7 +628,8 @@ static void power_down(void)
|
|
|
* corruption after resume.
|
|
|
*/
|
|
|
printk(KERN_CRIT "PM: Please power down manually\n");
|
|
|
- while(1);
|
|
|
+ while (1)
|
|
|
+ cpu_relax();
|
|
|
}
|
|
|
|
|
|
/**
|