]> git.baikalelectronics.ru Git - kernel.git/commit
workqueue: factor out worker_pool from global_cwq
authorTejun Heo <tj@kernel.org>
Thu, 12 Jul 2012 21:46:37 +0000 (14:46 -0700)
committerTejun Heo <tj@kernel.org>
Thu, 12 Jul 2012 21:46:37 +0000 (14:46 -0700)
commit06371f9438a34a53c93f85a4a8acceb21a647acb
tree4d12a15e7e72f2d64fb6e58a145e56b4da1a341a
parentcf59c19de94dc52eb2f2cb261ec4d006f41d8ff1
workqueue: factor out worker_pool from global_cwq

Move worklist and all worker management fields from global_cwq into
the new struct worker_pool.  worker_pool points back to the containing
gcwq.  worker and cpu_workqueue_struct are updated to point to
worker_pool instead of gcwq too.

This change is mechanical and doesn't introduce any functional
difference other than rearranging of fields and an added level of
indirection in some places.  This is to prepare for multiple pools per
gcwq.

v2: Comment typo fixes as suggested by Namhyung.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
include/trace/events/workqueue.h
kernel/workqueue.c