Skip to content

Commit f089ab6

Browse files
digetxrafaeljw
authored andcommitted
xen/x86: 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: Juergen Gross <jgross@suse.com> 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 f4622fe commit f089ab6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/x86/xen/enlighten_pv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include <linux/gfp.h>
3232
#include <linux/edd.h>
3333
#include <linux/objtool.h>
34+
#include <linux/reboot.h>
3435

3536
#include <xen/xen.h>
3637
#include <xen/events.h>
@@ -1071,8 +1072,7 @@ static void xen_machine_halt(void)
10711072

10721073
static void xen_machine_power_off(void)
10731074
{
1074-
if (pm_power_off)
1075-
pm_power_off();
1075+
do_kernel_power_off();
10761076
xen_reboot(SHUTDOWN_poweroff);
10771077
}
10781078

0 commit comments

Comments
 (0)