Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

parisc: machine_power_off() should call pm_power_off()

Signed-off-by: Helge Deller <deller@gmx.de>
Tested-by: Matt Turner <mattst88@gmail.com>

+5 -1
+5 -1
arch/parisc/kernel/process.c
··· 138 138 pdc_soft_power_button(0); 139 139 140 140 pdc_chassis_send_status(PDC_CHASSIS_DIRECT_SHUTDOWN); 141 + 142 + /* ipmi_poweroff may have been installed. */ 143 + if (pm_power_off) 144 + pm_power_off(); 141 145 142 146 /* It seems we have no way to power the system off via 143 147 * software. The user has to press the button himself. */ ··· 155 151 for (;;); 156 152 } 157 153 158 - void (*pm_power_off)(void) = machine_power_off; 154 + void (*pm_power_off)(void); 159 155 EXPORT_SYMBOL(pm_power_off); 160 156 161 157 void flush_thread(void)