Star64_linux/kernel/power
Imran Khan 430ad57aa7 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-06-06 18:37:26 +08:00
..
autosleep.c PM: sleep: fix typos in comments 2021-04-08 19:37:21 +02:00
console.c
energy_model.c PM: EM: fix memory leak with using debugfs_lookup() 2023-04-19 18:00:10 +08:00
hibernate.c PM: hibernate: Allow hybrid sleep to work with s2idle 2023-04-19 17:55:51 +08:00
Kconfig PM: sleep: remove trailing spaces and tabs 2021-06-11 18:49:09 +02:00
main.c PM: s2idle: ACPI: Fix wakeup interrupts handling 2023-04-19 17:45:15 +08:00
Makefile PM: hibernate: Split off snapshot dev option 2020-05-19 17:48:08 +02:00
power.h kernel/power: allow hibernation with page_poison sanity checking 2020-12-15 12:13:46 -08:00
poweroff.c kernel/power: constify sysrq_key_op 2020-05-15 14:53:20 +02:00
process.c workqueue: Introduce show_one_worker_pool and show_one_workqueue. 2023-06-06 18:37:26 +08:00
qos.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
snapshot.c PM: hibernate: Fix mistake in kerneldoc comment 2023-04-19 17:57:13 +08:00
suspend.c PM: s2idle: ACPI: Fix wakeup interrupts handling 2023-04-19 17:45:15 +08:00
suspend_test.c PM: suspend: fix return value of __setup handler 2023-04-19 17:46:41 +08:00
swap.c PM: hibernate: fix sparse warnings 2023-04-19 16:57:27 +08:00
user.c PM: hibernate: defer device probing when resuming from hibernation 2023-04-19 17:52:09 +08:00
wakelock.c PM: wakeup: simplify the output logic of pm_show_wakelocks() 2023-04-19 17:44:48 +08:00