Skip to content

Commit f4622fe

Browse files
digetxrafaeljw
authored andcommitted
parisc: Use do_kernel_power_off()
Kernel now supports chained power-off handlers. Use do_kernel_power_off() that invokes chained power-off handlers. It also invokes legacy pm_power_off() for now, which will be removed once all drivers will be converted to the new sys-off API. Acked-by: Helge Deller <deller@gmx.de> # parisc Reviewed-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 0c64991 commit f4622fe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/parisc/kernel/process.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include <linux/module.h>
2727
#include <linux/personality.h>
2828
#include <linux/ptrace.h>
29+
#include <linux/reboot.h>
2930
#include <linux/sched.h>
3031
#include <linux/sched/debug.h>
3132
#include <linux/sched/task.h>
@@ -116,8 +117,7 @@ void machine_power_off(void)
116117
pdc_chassis_send_status(PDC_CHASSIS_DIRECT_SHUTDOWN);
117118

118119
/* ipmi_poweroff may have been installed. */
119-
if (pm_power_off)
120-
pm_power_off();
120+
do_kernel_power_off();
121121

122122
/* It seems we have no way to power the system off via
123123
* software. The user has to press the button himself. */

0 commit comments

Comments
 (0)