summaryrefslogtreecommitdiff
path: root/kernel/power
diff options
context:
space:
mode:
authorJungseung Lee <js07.lee@samsung.com>2023-03-20 12:29:05 +0900
committerTejun Heo <tj@kernel.org>2023-03-23 15:55:38 -1000
commit704bc669e1dda3eb8f6d5cb462b21e85558a3912 (patch)
tree8aec6e26bb2a535a9014883ffc4f82bfd0bb58f1 /kernel/power
parentcd2440d66fec7d1bdb4f605b64c27c63c9141989 (diff)
workqueue: Introduce show_freezable_workqueues
Currently show_all_workqueue is called if freeze fails at the time of freeze the workqueues, which shows the status of all workqueues and of all worker pools. In this cases we may only need to dump state of only workqueues that are freezable and busy. This patch defines show_freezable_workqueues, which uses show_one_workqueue, a granular function that shows the state of individual workqueues, so that dump only the state of freezable workqueues at that time. tj: Minor message adjustment. Signed-off-by: Jungseung Lee <js07.lee@samsung.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/power')
-rw-r--r--kernel/power/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/power/process.c b/kernel/power/process.c
index 6c1c7e566d35..cae81a87cc91 100644
--- a/kernel/power/process.c
+++ b/kernel/power/process.c
@@ -93,7 +93,7 @@ static int try_to_freeze_tasks(bool user_only)
todo - wq_busy, wq_busy);
if (wq_busy)
- show_all_workqueues();
+ show_freezable_workqueues();
if (!wakeup || pm_debug_messages_on) {
read_lock(&tasklist_lock);