diff options
author | Todd Brandt <todd.e.brandt@linux.intel.com> | 2018-08-23 03:37:11 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-09-10 12:09:10 +0200 |
commit | 8412dbd642585107e29b20920876de98e7df5819 (patch) | |
tree | e68e586274e9531ca242d7b3f0c53270e81b8037 | |
parent | PM / hibernate: Documentation: fix image_size default value (diff) | |
download | linux-8412dbd642585107e29b20920876de98e7df5819.tar.xz linux-8412dbd642585107e29b20920876de98e7df5819.zip |
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>
-rw-r--r-- | kernel/power/process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/power/process.c b/kernel/power/process.c index 7381d49a44db..4b6a54da7e65 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) |