WSL2-Linux-Kernel/kernel/power
Maulik Shah 18f1f468dd PM: suspend: Set mem_sleep_current during kernel command line setup
[ Upstream commit 9bc4ffd32ef8943f5c5a42c9637cfd04771d021b ]

psci_init_system_suspend() invokes suspend_set_ops() very early during
bootup even before kernel command line for mem_sleep_default is setup.
This leads to kernel command line mem_sleep_default=s2idle not working
as mem_sleep_current gets changed to deep via suspend_set_ops() and never
changes back to s2idle.

Set mem_sleep_current along with mem_sleep_default during kernel command
line setup as default suspend mode.

Fixes: faf7ec4a92 ("drivers: firmware: psci: add system suspend support")
CC: stable@vger.kernel.org # 5.4+
Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-10 16:18:36 +02:00
..
Kconfig
Makefile
autosleep.c
console.c
energy_model.c
hibernate.c
main.c
power.h
poweroff.c
process.c workqueue: Introduce show_one_worker_pool and show_one_workqueue. 2023-05-11 23:00:35 +09:00
qos.c
snapshot.c PM: hibernate: Clean up sync_read handling in snapshot_write_next() 2023-11-28 16:56:29 +00:00
suspend.c PM: suspend: Set mem_sleep_current during kernel command line setup 2024-04-10 16:18:36 +02:00
suspend_test.c
swap.c PM: hibernate: Enforce ordering during image compression/decompression 2024-02-23 08:54:23 +01:00
user.c
wakelock.c