diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2010-08-20 18:26:46 +0200 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-09-08 10:13:24 +0100 |
commit | 6c0d93500eb50098e4e35b8b79e073f2f2f5b773 (patch) | |
tree | c6ef345799ac6ed7038686f3ba064042401f1566 /drivers/cpuidle | |
parent | bc0c7f14432f7f94b16f972f2d23b8c1248249b4 (diff) |
drm/i915: unload: fix hotplug_work races
hotplug_work is queued by the hotplug interrupt and only either emits
a hotplug uevent or queues a crt poll slow-work. No other locking. So
it's safe to cancel this work _after_ irq's have been turned off. But
before the modesetting objects are destroyed because the hotplug
function accesses them (without locking).
The current code (for kms) only switches irqs off after modesetting
teardown, hence move the irq teardown into the modeset cleanup right
before the crtc cleanup.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/cpuidle')
0 files changed, 0 insertions, 0 deletions