From: Tejun Heo Date: Tue, 29 Jun 2010 08:07:12 +0000 (+0200) Subject: workqueue: introduce global cwq and unify cwq locks X-Git-Tag: v2.6.36-rc1~506^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b03ae3cde59af9facab7c831b4141515d5dbcc8;p=pandora-kernel.git 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 --- Reading git-diff-tree failed