]> git.baikalelectronics.ru Git - kernel.git/commit
workqueue: introduce worker
authorTejun Heo <tj@kernel.org>
Tue, 29 Jun 2010 08:07:11 +0000 (10:07 +0200)
committerTejun Heo <tj@kernel.org>
Tue, 29 Jun 2010 08:07:11 +0000 (10:07 +0200)
commit1ac32c145f3172a30a5954bfaf43ff93010ab6df
tree583cc13af000d1c085b1f951f8975eee78cea54c
parent0be77fe8fe847a5df6a0e34ed417e65b5e8bb809
workqueue: introduce worker

Separate out worker thread related information to struct worker from
struct cpu_workqueue_struct and implement helper functions to deal
with the new struct worker.  The only change which is visible outside
is that now workqueue worker are all named "kworker/CPUID:WORKERID"
where WORKERID is allocated from per-cpu ida.

This is in preparation of concurrency managed workqueue where shared
multiple workers would be available per cpu.

Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c