diff options
author | Tejun Heo <tj@kernel.org> | 2010-06-29 10:07:12 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2010-06-29 10:07:12 +0200 |
commit | 8b03ae3cde59af9facab7c831b4141515d5dbcc8 (patch) | |
tree | 900829ac17fa941e9819208489081e4de1218ac4 /kernel/workqueue_sched.h | |
parent | a0a1a5fd4fb15ec61117c759fe9f5c16c53d9e9c (diff) | |
download | op-kernel-dev-8b03ae3cde59af9facab7c831b4141515d5dbcc8.zip op-kernel-dev-8b03ae3cde59af9facab7c831b4141515d5dbcc8.tar.gz |
workqueue: introduce global cwq and unify cwq locks
There is one gcwq (global cwq) per each cpu and all cwqs on an cpu
point to it. A gcwq contains a lock to be used by all cwqs on the cpu
and an ida to give IDs to workers belonging to the cpu.
This patch introduces gcwq, moves worker_ida into gcwq and make all
cwqs on the same cpu use the cpu's gcwq->lock instead of separate
locks. gcwq->ida is now protected by gcwq->lock too.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/workqueue_sched.h')
0 files changed, 0 insertions, 0 deletions