]> git.baikalelectronics.ru Git - kernel.git/commit
PM: hibernate: Use kernel_can_power_off()
authorDmitry Osipenko <dmitry.osipenko@collabora.com>
Fri, 17 Jun 2022 12:24:02 +0000 (15:24 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 21 Jun 2022 18:57:30 +0000 (20:57 +0200)
commit1430d84eece7772b7ac17d39e04a0ddd8c700e57
tree8a4ad11a6df42587b35d3650a55faddf240e3632
parent08aafa0d475a08e31a13403e9df41c7179f4bdcd
PM: hibernate: Use kernel_can_power_off()

Use new kernel_can_power_off() API instead of legacy pm_power_off global
variable to fix regressed hibernation to disk where machine no longer
powers off when it should because ACPI power driver transitioned to the
new sys-off based API and it doesn't use pm_power_off anymore.

Fixes: 90ab7cff34f2 ("ACPI: power: Switch to sys-off handler API")
Tested-by: Ken Moffat <zarniwhoop@ntlworld.com>
Reported-by: Ken Moffat <zarniwhhop@ntlworld.com>
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/hibernate.c