diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2010-08-20 21:40:52 +0200 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-09-08 10:13:26 +0100 |
commit | 3dec0095f71e7d00b7f6180229fd32a2d0a6ce8d (patch) | |
tree | 77dc949a759d2016c33940d0c5f75e99826fd8ca /arch/alpha/lib/ev6-csum_ipv6_magic.S | |
parent | a8b4899e4658e53c0c8f4206af105e358e39ee93 (diff) |
drm/i915: unload: fix idle_timer/idle_work races
idle_work wasn't cleaned up at all. It takes &dev->struct_mutex, but
accesss the mode_config crtc list (without any other locking!). Hence
this work needs to be canceled before calling drm_mode_config_cleanup.
As evidenced by the kernel's object debuggin code, the current code
also cleans up the timer to early (it gets rearmed). So move it right
before the final cleanup (it seems to work).
Also unconditionally set up the idle_timer in intel_increase_pllclock.
If we're unlucky the timer might fire right away, rendering the call
in the modesetting teardown pointless.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'arch/alpha/lib/ev6-csum_ipv6_magic.S')
0 files changed, 0 insertions, 0 deletions