]> git.baikalelectronics.ru Git - kernel.git/commit
PM: hibernate: Allow hybrid sleep to work with s2idle
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 13 Oct 2022 03:50:17 +0000 (22:50 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 25 Oct 2022 12:53:19 +0000 (14:53 +0200)
commitc897b9b530149eb1b204390451fa288ef3632c9f
tree715b0170c73e185dbf725dc65094f15615f2f176
parent6b09660c490b77d34d901175007a779ce7bea55a
PM: hibernate: Allow hybrid sleep to work with s2idle

Hybrid sleep is currently hardcoded to only operate with S3 even
on systems that might not support it.

Instead of assuming this mode is what the user wants to use, for
hybrid sleep follow the setting of `mem_sleep_current` which
will respect mem_sleep_default kernel command line and policy
decisions made by the presence of the FADT low power idle bit.

Fixes: 94ec3e9af60c ("PM / hibernate: Untangle power_down()")
Reported-and-tested-by: kolAflash <kolAflash@kolahilft.de>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=216574
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/hibernate.c