提交 24002d59 编写于 作者: H Helge Deller

parisc: machine_power_off() should call pm_power_off()

Signed-off-by: NHelge Deller <deller@gmx.de>
Tested-by: NMatt Turner <mattst88@gmail.com>
上级 2a3f53d5
...@@ -138,6 +138,10 @@ void machine_power_off(void) ...@@ -138,6 +138,10 @@ void machine_power_off(void)
pdc_soft_power_button(0); pdc_soft_power_button(0);
pdc_chassis_send_status(PDC_CHASSIS_DIRECT_SHUTDOWN); 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 /* It seems we have no way to power the system off via
* software. The user has to press the button himself. */ * software. The user has to press the button himself. */
...@@ -151,7 +155,7 @@ void machine_power_off(void) ...@@ -151,7 +155,7 @@ void machine_power_off(void)
for (;;); for (;;);
} }
void (*pm_power_off)(void) = machine_power_off; void (*pm_power_off)(void);
EXPORT_SYMBOL(pm_power_off); EXPORT_SYMBOL(pm_power_off);
void flush_thread(void) void flush_thread(void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册