diff options
author | Roger Lu <roger.lu@mediatek.com> | 2016-07-01 05:05:02 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-07-02 01:42:48 +0200 |
commit | 7b776af66dc462caa7e839cc5c950a61db1f8551 (patch) | |
tree | a9a32ede061fe88dd885e93bcbca748427cd4a18 /kernel/power/process.c | |
parent | PM / sleep: make PM notifiers called symmetrically (diff) | |
download | linux-7b776af66dc462caa7e839cc5c950a61db1f8551.tar.xz linux-7b776af66dc462caa7e839cc5c950a61db1f8551.zip |
PM / suspend: show workqueue state in suspend flow
If freezable workqueue aborts suspend flow, show
workqueue state for debug purpose.
Signed-off-by: Roger Lu <roger.lu@mediatek.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/power/process.c')
-rw-r--r-- | kernel/power/process.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/power/process.c b/kernel/power/process.c index df058bed53ce..6eef250a5705 100644 --- a/kernel/power/process.c +++ b/kernel/power/process.c @@ -89,6 +89,9 @@ static int try_to_freeze_tasks(bool user_only) elapsed_msecs / 1000, elapsed_msecs % 1000, todo - wq_busy, wq_busy); + if (wq_busy) + show_workqueue_state(); + if (!wakeup) { read_lock(&tasklist_lock); for_each_process_thread(g, p) { |