diff options
author | Helge Deller <deller@gmx.de> | 2018-03-24 20:49:39 +0100 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2018-03-27 18:52:22 +0200 |
commit | 24002d59376e2d19a2a523fe88d5b32e691a43af (patch) | |
tree | 2f9e8d1b95ec892f253ce32003dcfae326d22f63 /arch/parisc/kernel/process.c | |
parent | 2a3f53d5530c02d7bc7c78b11e6a2c24dc767e9c (diff) |
parisc: machine_power_off() should call pm_power_off()
Signed-off-by: Helge Deller <deller@gmx.de>
Tested-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'arch/parisc/kernel/process.c')
-rw-r--r-- | arch/parisc/kernel/process.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/parisc/kernel/process.c b/arch/parisc/kernel/process.c index 6975a0627078..bbe46571ff96 100644 --- a/arch/parisc/kernel/process.c +++ b/arch/parisc/kernel/process.c @@ -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) |