diff options
author | 2025-05-09 14:51:47 +0200 | |
---|---|---|
committer | 2025-05-13 14:00:20 +0200 | |
commit | 1b17d4525bca3916644c41e01522df8fa0f8b90b (patch) | |
tree | 8642dc7b4734822eb1fad4ef55b2e1813b094c40 /kernel/power/main.c | |
parent | ucsi_ccg: Disable async suspend in ucsi_ccg_probe() (diff) | |
download | linux-rng-1b17d4525bca3916644c41e01522df8fa0f8b90b.tar.xz linux-rng-1b17d4525bca3916644c41e01522df8fa0f8b90b.zip |
PM: sleep: Print PM debug messages during hibernation
Commit cdb8c100d8a4 ("include/linux/suspend.h: Only show pm_pr_dbg
messages at suspend/resume") caused PM debug messages to only be
printed during system-wide suspend and resume in progress, but it
forgot about hibernation.
Address this by adding a check for hibernation in progress to
pm_debug_messages_should_print().
Fixes: cdb8c100d8a4 ("include/linux/suspend.h: Only show pm_pr_dbg messages at suspend/resume")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://patch.msgid.link/4998903.GXAFRqVoOG@rjwysocki.net
Diffstat (limited to 'kernel/power/main.c')
-rw-r--r-- | kernel/power/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/power/main.c b/kernel/power/main.c index 97746f08b762..fb20a6e26fb6 100644 --- a/kernel/power/main.c +++ b/kernel/power/main.c @@ -613,7 +613,8 @@ bool pm_debug_messages_on __read_mostly; bool pm_debug_messages_should_print(void) { - return pm_debug_messages_on && pm_suspend_target_state != PM_SUSPEND_ON; + return pm_debug_messages_on && (hibernation_in_progress() || + pm_suspend_target_state != PM_SUSPEND_ON); } EXPORT_SYMBOL_GPL(pm_debug_messages_should_print); |