Skip to content
  • Tejun Heo's avatar
    drm/nouveau: use system_wq instead of dev_priv->wq · d82f8e6c
    Tejun Heo authored
    
    
    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: default avatarTejun Heo <tj@kernel.org>
    Cc: David Airlie <airlied@linux.ie>
    Cc: dri-devel@lists.freedesktop.org
    Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
    d82f8e6c