]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
drm: Increment dev_priv->irq_received so i915_gem_interrupts count works.
authorEric Anholt <eric@anholt.net>
Mon, 6 Oct 2008 22:14:12 +0000 (15:14 -0700)
committerDave Airlie <airlied@linux.ie>
Fri, 17 Oct 2008 21:10:53 +0000 (07:10 +1000)
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/i915/i915_irq.c

index ef03a59c1df870a622b4f09690b2c9feb8070d0c..baae511c785b6297115b47a20a23e6568bb8cca3 100644 (file)
@@ -372,6 +372,8 @@ irqreturn_t i915_driver_irq_handler(DRM_IRQ_ARGS)
        u32 pipea_stats, pipeb_stats;
        int vblank = 0;
 
+       atomic_inc(&dev_priv->irq_received);
+
        if (dev->pdev->msi_enabled)
                I915_WRITE(IMR, ~0);
        iir = I915_READ(IIR);