提交 7b776af6 编写于 作者: R Roger Lu 提交者: Rafael J. Wysocki

PM / suspend: show workqueue state in suspend flow

If freezable workqueue aborts suspend flow, show
workqueue state for debug purpose.
Signed-off-by: NRoger Lu <roger.lu@mediatek.com>
Acked-by: NTejun Heo <tj@kernel.org>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 ea00f4f4
...@@ -89,6 +89,9 @@ static int try_to_freeze_tasks(bool user_only) ...@@ -89,6 +89,9 @@ static int try_to_freeze_tasks(bool user_only)
elapsed_msecs / 1000, elapsed_msecs % 1000, elapsed_msecs / 1000, elapsed_msecs % 1000,
todo - wq_busy, wq_busy); todo - wq_busy, wq_busy);
if (wq_busy)
show_workqueue_state();
if (!wakeup) { if (!wakeup) {
read_lock(&tasklist_lock); read_lock(&tasklist_lock);
for_each_process_thread(g, p) { for_each_process_thread(g, p) {
......
...@@ -4369,8 +4369,8 @@ static void show_pwq(struct pool_workqueue *pwq) ...@@ -4369,8 +4369,8 @@ static void show_pwq(struct pool_workqueue *pwq)
/** /**
* show_workqueue_state - dump workqueue state * show_workqueue_state - dump workqueue state
* *
* Called from a sysrq handler and prints out all busy workqueues and * Called from a sysrq handler or try_to_freeze_tasks() and prints out
* pools. * all busy workqueues and pools.
*/ */
void show_workqueue_state(void) void show_workqueue_state(void)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册