drm/nouveau: use system_wq instead of dev_priv->wq
authorTejun Heo <tj@kernel.org>
Wed, 26 Jan 2011 16:49:18 +0000 (17:49 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 24 Feb 2011 20:44:36 +0000 (06:44 +1000)
commitd82f8e6c802bb1244ce590d3877f7c66a8fb0ff0
treecb7294e91455667978b9f01d4dcffe151f3bdd7e
parentf17811dfa7f07e3df6d0e3c4ab4af8eb47e8fabc
drm/nouveau: use system_wq instead of dev_priv->wq

With cmwq, there's no reason for nouveau to use a dedicated workqueue.
Drop dev_priv->wq and use system_wq instead.  Each work item is sync
flushed when the containing structure is unregistered/destroyed.

Note that this change also makes sure that nv50_gpio_handler is not
freed while the contained work item is still running.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: David Airlie <airlied@linux.ie>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_state.c
drivers/gpu/drm/nouveau/nv50_display.c
drivers/gpu/drm/nouveau/nv50_gpio.c