diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2025-05-09 15:03:35 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2025-05-13 21:59:02 +0200 |
commit | f5c0ecf196aaf78777f1606f1e0392c5e57c4530 (patch) | |
tree | ff84c74309cd9be028f8e34cd5772dcf45ad61e6 /scripts/lib/kdoc/kdoc_re.py | |
parent | 34a364ff04e960a4d47f558acf7fbafcc3085c1f (diff) |
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>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions