summaryrefslogtreecommitdiffstats
path: root/kernel/power/process.c
diff options
context:
space:
mode:
authorJungseung Lee <js07.lee@samsung.com>2023-03-20 04:29:05 +0100
committerTejun Heo <tj@kernel.org>2023-03-24 02:55:38 +0100
commit704bc669e1dda3eb8f6d5cb462b21e85558a3912 (patch)
tree8aec6e26bb2a535a9014883ffc4f82bfd0bb58f1 /kernel/power/process.c
parentworkqueue: Print backtraces from CPUs with hung CPU bound workqueues (diff)
downloadlinux-704bc669e1dda3eb8f6d5cb462b21e85558a3912.tar.xz
linux-704bc669e1dda3eb8f6d5cb462b21e85558a3912.zip
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/process.c')
-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);