Don't clear USER_INTERRUPT if we're not handling it.

This fixes a regression from commit d434b64f6a
which could cause us to fail to wake up for user interrupts if we lost a race.
main
Eric Anholt 2008-06-12 10:56:37 -07:00
parent b2606e325a
commit cc74ac3590
1 changed files with 1 additions and 1 deletions

View File

@ -507,7 +507,7 @@ irqreturn_t i915_driver_irq_handler(DRM_IRQ_ARGS)
if (dev_priv->sarea_priv)
dev_priv->sarea_priv->last_dispatch = READ_BREADCRUMB(dev_priv);
I915_WRITE(I915REG_INT_IDENTITY_R, iir | I915_USER_INTERRUPT);
I915_WRITE(I915REG_INT_IDENTITY_R, iir);
(void) I915_READ(I915REG_INT_IDENTITY_R); /* Flush posted write */
if (iir & I915_USER_INTERRUPT) {