]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PM: sleep: Print PM debug messages during hibernation
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 9 May 2025 12:51:47 +0000 (14:51 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 13 May 2025 12:00:20 +0000 (14:00 +0200)
commit1b17d4525bca3916644c41e01522df8fa0f8b90b
tree8642dc7b4734822eb1fad4ef55b2e1813b094c40
parentd559335f3f0cae88d9af49d6572297a30286286f
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
kernel/power/hibernate.c
kernel/power/main.c
kernel/power/power.h