android_kernel_xiaomi_sm7250/kernel/power
Mario Limonciello d7758c23a6 PM: hibernate: Allow hybrid sleep to work with s2idle
[ Upstream commit 85850af4fc47132f3f2f0dd698b90f67906600b4 ]

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: 81d45bdf89 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-11-03 23:52:31 +09:00
..
autosleep.c
console.c
hibernate.c PM: hibernate: Allow hybrid sleep to work with s2idle 2022-11-03 23:52:31 +09:00
Kconfig
main.c
Makefile
power.h
poweroff.c
process.c
qos.c
snapshot.c
suspend_test.c PM: suspend: fix return value of __setup handler 2022-04-15 14:14:43 +02:00
suspend.c
swap.c PM: hibernate: fix sparse warnings 2021-11-26 11:36:10 +01:00
user.c PM: hibernate: defer device probing when resuming from hibernation 2022-08-25 11:15:00 +02:00
wakelock.c PM: wakeup: simplify the output logic of pm_show_wakelocks() 2022-02-08 18:23:03 +01:00