summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2008-08-20 15:04:27 (GMT)
committerDave Airlie <airlied@linux.ie>2008-10-17 21:10:52 (GMT)
commitdbb19d302baa8ba518599701914f600935fc53fa (patch)
treed3391ed8f7c39f8201d3ea1432df6f634770a2e5 /drivers/gpu/drm/i915
parentc99b058f132388a666544d293392d52d1def6b12 (diff)
downloadlinux-fsl-qoriq-dbb19d302baa8ba518599701914f600935fc53fa.tar.xz
i915 gem: install and uninstall irq handler in entervt and leavevt ioctls.
Signed-off-by: Kristian Høgsberg <krh@redhat.com> Signed-off-by: Eric Anholt <eric@anholt.net> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/i915')
-rw-r--r--drivers/gpu/drm/i915/i915_gem.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index bb6e5a3..5fe5034 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -2443,6 +2443,9 @@ i915_gem_entervt_ioctl(struct drm_device *dev, void *data,
BUG_ON(!list_empty(&dev_priv->mm.request_list));
dev_priv->mm.suspended = 0;
mutex_unlock(&dev->struct_mutex);
+
+ drm_irq_install(dev);
+
return 0;
}
@@ -2458,6 +2461,8 @@ i915_gem_leavevt_ioctl(struct drm_device *dev, void *data,
i915_gem_cleanup_ringbuffer(dev);
mutex_unlock(&dev->struct_mutex);
+ drm_irq_uninstall(dev);
+
return 0;
}