From: Dmitry Osipenko Date: Mon, 9 May 2022 23:32:22 +0000 (+0300) Subject: xen/x86: Use do_kernel_power_off() X-Git-Tag: v5.19-rc1~94^2^2~2^2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f089ab674cea43561fee8e3de8d15d864e486286;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Michał Mirosław Signed-off-by: Dmitry Osipenko Signed-off-by: Rafael J. Wysocki --- diff --git a/arch/x86/xen/enlighten_pv.c b/arch/x86/xen/enlighten_pv.c index 5038edb79ad51..af1f6e8862257 100644 --- a/arch/x86/xen/enlighten_pv.c +++ b/arch/x86/xen/enlighten_pv.c @@ -31,6 +31,7 @@ #include #include #include +#include #include #include @@ -1071,8 +1072,7 @@ static void xen_machine_halt(void) static void xen_machine_power_off(void) { - if (pm_power_off) - pm_power_off(); + do_kernel_power_off(); xen_reboot(SHUTDOWN_poweroff); }