WSL2-Linux-Kernel/kernel/power
Imran Khan 6c073c5a5b workqueue: Introduce show_one_worker_pool and show_one_workqueue.
[ Upstream commit 55df0933be ]

Currently show_workqueue_state shows the state of all workqueues and of
all worker pools. In certain cases we may need to dump state of only a
specific workqueue or worker pool. For example in destroy_workqueue we
only need to show state of the workqueue which is getting destroyed.

So rename show_workqueue_state to show_all_workqueues(to signify it
dumps state of all busy workqueues) and divide it into more granular
functions (show_one_workqueue and show_one_worker_pool), that would show
states of individual workqueues and worker pools and can be used in
cases such as the one mentioned above.

Also, as mentioned earlier, make destroy_workqueue dump data pertaining
to only the workqueue that is being destroyed and make user(s) of
earlier interface(show_workqueue_state), use new interface
(show_all_workqueues).

Signed-off-by: Imran Khan <imran.f.khan@oracle.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Stable-dep-of: 335a42ebb0 ("workqueue: Fix hung time report of worker pools")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-11 23:00:35 +09:00
..
Kconfig
Makefile
autosleep.c
console.c
energy_model.c PM: EM: fix memory leak with using debugfs_lookup() 2023-03-10 09:39:51 +01:00
hibernate.c PM: hibernate: Allow hybrid sleep to work with s2idle 2022-11-03 23:59:17 +09:00
main.c PM: s2idle: ACPI: Fix wakeup interrupts handling 2022-02-16 12:56:19 +01:00
power.h
poweroff.c
process.c workqueue: Introduce show_one_worker_pool and show_one_workqueue. 2023-05-11 23:00:35 +09:00
qos.c
snapshot.c PM: hibernate: Fix mistake in kerneldoc comment 2022-12-31 13:14:01 +01:00
suspend.c PM: s2idle: ACPI: Fix wakeup interrupts handling 2022-02-16 12:56:19 +01:00
suspend_test.c PM: suspend: fix return value of __setup handler 2022-04-08 14:23:07 +02:00
swap.c PM: hibernate: fix sparse warnings 2021-11-18 19:16:38 +01:00
user.c PM: hibernate: defer device probing when resuming from hibernation 2022-08-17 14:23:04 +02:00
wakelock.c PM: wakeup: simplify the output logic of pm_show_wakelocks() 2022-02-01 17:27:00 +01:00