]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PM: suspend: Make pm_test delay interruptible by wakeup events
authorRiwen Lu <luriwen@kylinos.cn>
Thu, 13 Nov 2025 01:26:38 +0000 (09:26 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 14 Nov 2025 16:09:16 +0000 (17:09 +0100)
commita10ad1b104024efe0a01d21ce7c08002cf4034c4
tree15c35044e84408189483f6c1face052446cd84c6
parent7b9725b3d1222c60571e8117f15fd8057b38ee83
PM: suspend: Make pm_test delay interruptible by wakeup events

Modify the suspend_test() function to allow the test delay to be
interrupted by wakeup events.

This improves the responsiveness of the system during suspend testing
when wakeup events occur, allowing the suspend process to proceed
without waiting for the full test delay to complete when wakeup events
are detected.

Additionally, using msleep() instead of mdelay() avoids potential soft
lockup "CPU stuck" issues when long test delays are configured.

Co-developed-by: xiongxin <xiongxin@kylinos.cn>
Signed-off-by: xiongxin <xiongxin@kylinos.cn>
Signed-off-by: Riwen Lu <luriwen@kylinos.cn>
[ rjw: Changelog edits ]
Link: https://patch.msgid.link/20251113012638.1362013-1-luriwen@kylinos.cn
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/suspend.c