workqueue: factor out initial worker creation into create_and_start_worker()
authorTejun Heo <tj@kernel.org>
Thu, 14 Mar 2013 02:47:39 +0000 (19:47 -0700)
committerTejun Heo <tj@kernel.org>
Thu, 14 Mar 2013 02:47:39 +0000 (19:47 -0700)
commitebf44d16ec4619c8a8daeacd987dd86d420ea2c3
tree501bb8fbeda2ff67d71af733c3c56150053a4351
parentbc3a1afc92aea46d6df18d38e5d15867b17c69f6
workqueue: factor out initial worker creation into create_and_start_worker()

get_unbound_pool(), workqueue_cpu_up_callback() and init_workqueues()
have similar code pieces to create and start the initial worker factor
those out into create_and_start_worker().

This patch doesn't introduce any functional changes.

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