aboutsummaryrefslogtreecommitdiff
path: root/linux-core/drm_irq.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2008-06-06 12:59:52 -0700
committerKeith Packard <keithp@keithp.com>2008-06-06 13:00:47 -0700
commit9f46c6935d154743162c6239903a4a9e443907bc (patch)
tree8212464335d194a7c1f909d2eb20523fbcd6b789 /linux-core/drm_irq.c
parenta708106c77f74f146722fba35eae772fb554ee9a (diff)
[intel-gem] Use timers to retire requests periodically.
Without the user IRQ running constantly, there's no wakeup when the ring empties to go retire requests and free buffers. Use a 1 second timer to make that happen more often.
Diffstat (limited to 'linux-core/drm_irq.c')
-rw-r--r--linux-core/drm_irq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-core/drm_irq.c b/linux-core/drm_irq.c
index 8f27d7f3..318d9d7a 100644
--- a/linux-core/drm_irq.c
+++ b/linux-core/drm_irq.c
@@ -124,6 +124,7 @@ int drm_vblank_init(struct drm_device *dev, int num_crtcs)
setup_timer(&dev->vblank_disable_timer, vblank_disable_fn,
(unsigned long)dev);
+ init_timer_deferrable(&dev->vblank_disable_timer);
spin_lock_init(&dev->vbl_lock);
atomic_set(&dev->vbl_signal_pending, 0);
dev->num_crtcs = num_crtcs;