1
0
Fork 0

parisc: machine_power_off() should call pm_power_off()

Signed-off-by: Helge Deller <deller@gmx.de>
Tested-by: Matt Turner <mattst88@gmail.com>
hifive-unleashed-5.1
Helge Deller 2018-03-24 20:49:39 +01:00
parent 2a3f53d553
commit 24002d5937
1 changed files with 5 additions and 1 deletions

View File

@ -138,6 +138,10 @@ void machine_power_off(void)
pdc_soft_power_button(0);
pdc_chassis_send_status(PDC_CHASSIS_DIRECT_SHUTDOWN);
/* ipmi_poweroff may have been installed. */
if (pm_power_off)
pm_power_off();
/* It seems we have no way to power the system off via
* software. The user has to press the button himself. */
@ -151,7 +155,7 @@ void machine_power_off(void)
for (;;);
}
void (*pm_power_off)(void) = machine_power_off;
void (*pm_power_off)(void);
EXPORT_SYMBOL(pm_power_off);
void flush_thread(void)