summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-09-05 14:23:18 +0200
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-09-05 14:23:18 +0200
commit034fc31292edaa25779a938ab3e92ef34697eaf9 (patch)
tree5a8c1accd82521750a64f8140b273a3f06d95e6c /linux-core
parent8c613a8363963330fbf701186f654007d6208bba (diff)
i915: Only turn on user IRQs when they are needed.
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/i915_fence.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/linux-core/i915_fence.c b/linux-core/i915_fence.c
index 673ebd0e..80ef3ab2 100644
--- a/linux-core/i915_fence.c
+++ b/linux-core/i915_fence.c
@@ -58,13 +58,9 @@ static void i915_perform_flush(drm_device_t * dev)
diff = sequence - fm->exe_flush_sequence;
if (diff < driver->wrap_diff) {
fm->pending_exe_flush = 0;
- /*
- * Turn off user IRQs
- */
+ i915_user_irq_off(dev_priv);
} else {
- /*
- * Turn on user IRQs
- */
+ i915_user_irq_on(dev_priv);
}
}
}