From: Todd Brandt Date: Thu, 23 Aug 2018 01:37:11 +0000 (-0700) Subject: PM / sleep: Show freezing tasks that caused a suspend abort X-Git-Tag: v5.15~7804^2~2^3~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8412dbd642585107e29b20920876de98e7df5819;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Rafael J. Wysocki --- diff --git a/kernel/power/process.c b/kernel/power/process.c index 7381d49..4b6a54d 100644 --- a/kernel/power/process.c +++ b/kernel/power/process.c @@ -96,7 +96,7 @@ static int try_to_freeze_tasks(bool user_only) if (wq_busy) show_workqueue_state(); - if (!wakeup) { + if (!wakeup || pm_debug_messages_on) { read_lock(&tasklist_lock); for_each_process_thread(g, p) { if (p != current && !freezer_should_skip(p)