drm/i915: properly cancel rps_work on module unload v2
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 8 Sep 2011 12:00:22 +0000 (14:00 +0200)
committerKeith Packard <keithp@keithp.com>
Thu, 20 Oct 2011 21:11:17 +0000 (14:11 -0700)
commit6fdd4d98e56e0919bb324c2ab1ff66395cf3b385
tree7498b5861b425a724eee8afae0ad497582d33af8
parenta9e2641dee52cae2db7688a749344365642a5e79
drm/i915: properly cancel rps_work on module unload v2

The rps disabling code wasn't properly cancelling outstanding work
items. Also add a comment that explains why we're not racing with
the work item that could unmask interrupts - that piece of code
confused me quite a bit.

v2: Ben Widawsky pointed out that the first patch would deadlock
(and a few lesser problems). All corrected.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/intel_display.c