summaryrefslogtreecommitdiff
path: root/drivers/mfd/tc6387xb.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2010-08-20 18:18:48 +0200
committerChris Wilson <chris@chris-wilson.co.uk>2010-09-08 10:13:24 +0100
commitbc0c7f14432f7f94b16f972f2d23b8c1248249b4 (patch)
treeccbadf9db22bb0ff1db7bdb9a4414246f184a7bb /drivers/mfd/tc6387xb.c
parent24d05927c37adf62fe8833eceba50585cb78f906 (diff)
drm/i915: unload: fix error_work races
This is the first patch to clean up module unload races due to outstanding timers/work. Preparatory step: Thou shalt not destroy the workqueue when new work might still get enqued. Now error_work gets queued by the hangcheck timer and only (atomically) reads the chip wedged status. So cancel it right after the hangcheck timer is killed. But the hangcheck is armed by interrupts, so move everything after irqs are disabled. Also change a del_timer to a del_timer_sync in the ums gem code, the hangcheck timer is self-rearming. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/mfd/tc6387xb.c')
0 files changed, 0 insertions, 0 deletions