Skip to content

Commit 8412dbd

Browse files
tebrandtrafaeljw
authored andcommitted
PM / sleep: Show freezing tasks that caused a suspend abort
For debug purposes it would be nice to see which tasks caused a suspend abort, i.e. which tasks were still in the process of freezing when a wakeup event occurred. This patch adds the info to pm_debug_messages. Signed-off-by: Todd Brandt <todd.e.brandt@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 3bb7564 commit 8412dbd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/power/process.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static int try_to_freeze_tasks(bool user_only)
9696
if (wq_busy)
9797
show_workqueue_state();
9898

99-
if (!wakeup) {
99+
if (!wakeup || pm_debug_messages_on) {
100100
read_lock(&tasklist_lock);
101101
for_each_process_thread(g, p) {
102102
if (p != current && !freezer_should_skip(p)

0 commit comments

Comments
 (0)