Skip to content

Commit d3ad437

Browse files
digetxrafaeljw
authored andcommitted
ia64: 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. 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 d357734 commit d3ad437

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/ia64/kernel/process.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <linux/module.h>
2020
#include <linux/notifier.h>
2121
#include <linux/personality.h>
22+
#include <linux/reboot.h>
2223
#include <linux/sched.h>
2324
#include <linux/sched/debug.h>
2425
#include <linux/sched/hotplug.h>
@@ -599,8 +600,7 @@ machine_halt (void)
599600
void
600601
machine_power_off (void)
601602
{
602-
if (pm_power_off)
603-
pm_power_off();
603+
do_kernel_power_off();
604604
machine_halt();
605605
}
606606

0 commit comments

Comments
 (0)