linux/kernel/power
Rafael J. Wysocki 684d3b2670 PM: sleep: Fix suspend_test() at the TEST_CORE level
Commit a10ad1b104 ("PM: suspend: Make pm_test delay interruptible by
wakeup events") replaced mdelay() in suspend_test() with msleep() which
does not work at the TEST_CORE test level that calls suspend_test()
while running on one CPU with interrupts off.

Address this by making suspend_test() check if the test level is
suitable for using msleep() and use mdelay() otherwise.

Fixes: a10ad1b104 ("PM: suspend: Make pm_test delay interruptible by wakeup events")
Reported-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Closes: https://lore.kernel.org/linux-pm/aUsAk0k1N9hw8IkY@venus/
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Link: https://patch.msgid.link/6251576.lOV4Wx5bFT@rafael.j.wysocki
2025-12-28 13:01:39 +01:00
..
Kconfig
Makefile
autosleep.c
console.c
em_netlink.c
em_netlink.h
em_netlink_autogen.c ynl: add regen hint to new headers 2025-12-08 23:52:43 -08:00
em_netlink_autogen.h ynl: add regen hint to new headers 2025-12-08 23:52:43 -08:00
energy_model.c
hibernate.c
main.c
power.h
poweroff.c
process.c
qos.c
snapshot.c
suspend.c PM: sleep: Fix suspend_test() at the TEST_CORE level 2025-12-28 13:01:39 +01:00
suspend_test.c
swap.c
user.c
wakelock.c