Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7b776af6 authored by Roger Lu's avatar Roger Lu Committed by Rafael J. Wysocki
Browse files

PM / suspend: show workqueue state in suspend flow



If freezable workqueue aborts suspend flow, show
workqueue state for debug purpose.

Signed-off-by: default avatarRoger Lu <roger.lu@mediatek.com>
Acked-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent ea00f4f4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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) {
+2 −2
Original line number Diff line number Diff line
@@ -4369,8 +4369,8 @@ static void show_pwq(struct pool_workqueue *pwq)
/**
 * show_workqueue_state - dump workqueue state
 *
 * Called from a sysrq handler and prints out all busy workqueues and
 * pools.
 * Called from a sysrq handler or try_to_freeze_tasks() and prints out
 * all busy workqueues and pools.
 */
void show_workqueue_state(void)
{