x86: Use do_kernel_power_off()
Bugzilla: https://bugzilla.redhat.com/2234390
Description:
Fix x86 kernel shutdown regression.
Upstream Status: d35773499329300d837818417f6d1b5a7987317d
Tested:
Shutdown tested on an x86 bare metal system and an x86 VM guest.
commit d35773499329300d837818417f6d1b5a7987317d
Author: Dmitry Osipenko dmitry.osipenko@collabora.com
Date: Tue May 10 02:32:26 2022 +0300
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.
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>
Signed-off-by: Lenny Szubowicz lszubowi@redhat.com