]> Pileus Git - ~andy/linux/commit
shpchp: update workqueue usage
authorTejun Heo <tj@kernel.org>
Mon, 18 Oct 2010 06:33:02 +0000 (08:33 +0200)
committerTejun Heo <tj@kernel.org>
Mon, 18 Oct 2010 06:33:02 +0000 (08:33 +0200)
commite24dcbef93dbbf529fbedfc6ce8ab22d2cef35f0
tree6ab3a2004ed8d21a48ce2eeda6c5b733b76599e4
parenta827ea307b147aeb050803433b3f6842582c6ced
shpchp: update workqueue usage

* Rename shpchp_wq to shpchp_ordered_wq and add non-ordered shpchp_wq
  which is used instead of the system workqueue.  This is to remove
  the use of flush_scheduled_work() which is deprecated and scheduled
  for removal.

* With cmwq in place, there's no point in creating workqueues lazily.
  Create both shpchp_wq and shpchp_ordered_wq upfront.

* Include workqueue.h from shpchp.h.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/hotplug/shpchp.h
drivers/pci/hotplug/shpchp_core.c
drivers/pci/hotplug/shpchp_ctrl.c
drivers/pci/hotplug/shpchp_hpc.c