diff options
| author | Tejun Heo <tj@kernel.org> | 2013-03-12 22:30:04 +0400 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2013-03-12 22:30:04 +0400 |
| commit | d2c1d40487bb1884be085c187233084f80df052d (patch) | |
| tree | 11ea6d2f331ed75935d0e65643d657f74278d881 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
| parent | 493008a8e475771a2126e0ce95a73e35b371d277 (diff) | |
| download | linux-d2c1d40487bb1884be085c187233084f80df052d.tar.xz | |
workqueue: restructure __alloc_workqueue_key()
* Move initialization and linking of pool_workqueues into
init_and_link_pwq().
* Make the failure path use destroy_workqueue() once pool_workqueue
initialization succeeds.
These changes are to prepare for dynamic management of pool_workqueues
and don't introduce any functional changes.
While at it, convert list_del(&wq->list) to list_del_init() as a
precaution as scheduled changes will make destruction more complex.
Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions
