]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PM: sleep: Introduce pm_sleep_transition_in_progress()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 9 May 2025 13:03:35 +0000 (15:03 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 13 May 2025 19:59:02 +0000 (21:59 +0200)
commitf5c0ecf196aaf78777f1606f1e0392c5e57c4530
treeff84c74309cd9be028f8e34cd5772dcf45ad61e6
parent34a364ff04e960a4d47f558acf7fbafcc3085c1f
PM: sleep: Introduce pm_sleep_transition_in_progress()

The "suspend in progress" check in device_wakeup_enable() does not
cover hibernation, but arguably it should do that, so introduce
pm_sleep_transition_in_progress() covering transitions during both
system suspend and hibernation to use in there and use it also in
pm_debug_messages_should_print().

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://patch.msgid.link/7820474.EvYhyI6sBW@rjwysocki.net
[ rjw: Move the new function definition under CONFIG_PM_SLEEP ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/wakeup.c
include/linux/suspend.h
kernel/power/main.c