diff options
author | Tejun Heo <tj@kernel.org> | 2010-07-02 10:03:51 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2010-07-02 10:59:57 +0200 |
commit | bdbc5dd7de5d07d6c9d3536e598956165a031d4c (patch) | |
tree | 1f0f263126c2fc2e07a032df1e9ad3fecb534c9a /ipc/util.h | |
parent | ad72cf9885c536e3adae03f8337557ac9dd1e4bb (diff) | |
download | linux-bdbc5dd7de5d07d6c9d3536e598956165a031d4c.tar.bz2 |
workqueue: prepare for WQ_UNBOUND implementation
In preparation of WQ_UNBOUND addition, make the following changes.
* Add WORK_CPU_* constants for pseudo cpu id numbers used (currently
only WORK_CPU_NONE) and use them instead of NR_CPUS. This is to
allow another pseudo cpu id for unbound cpu.
* Reorder WQ_* flags.
* Make workqueue_struct->cpu_wq a union which contains a percpu
pointer, regular pointer and an unsigned long value and use
kzalloc/kfree() in UP allocation path. This will be used to
implement unbound workqueues which will use only one cwq on SMPs.
* Move alloc_cwqs() allocation after initialization of wq fields, so
that alloc_cwqs() has access to wq->flags.
* Trivial relocation of wq local variables in freeze functions.
These changes don't cause any functional change.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'ipc/util.h')
0 files changed, 0 insertions, 0 deletions