diff options
author | Tejun Heo <tj@kernel.org> | 2010-06-29 12:07:11 +0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2010-06-29 12:07:11 +0400 |
commit | 1537663f5763892cacf1409ac0efef1b4f332d1e (patch) | |
tree | b2fe110d52315438c71b16f14d8a1b043b91deb4 /include/linux/workqueue.h | |
parent | 64166699752006f1a23a9cf7c96ae36654ccfc2c (diff) | |
download | linux-1537663f5763892cacf1409ac0efef1b4f332d1e.tar.xz |
workqueue: kill cpu_populated_map
Worker management is about to be overhauled. Simplify things by
removing cpu_populated_map, creating workers for all possible cpus and
making single threaded workqueues behave more like multi threaded
ones.
After this patch, all cwqs are always initialized, all workqueues are
linked on the workqueues list and workers for all possibles cpus
always exist. This also makes CPU hotplug support simpler - checking
->cpus_allowed before processing works in worker_thread() and flushing
cwqs on CPU_POST_DEAD are enough.
While at it, make get_cwq() always return the cwq for the specified
cpu, add target_cwq() for cases where single thread distinction is
necessary and drop all direct usage of per_cpu_ptr() on wq->cpu_wq.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/workqueue.h')
0 files changed, 0 insertions, 0 deletions