i915: Fix scheduled buffer swaps.
authorMichel Dänzer <michel@tungstengraphics.com>
Tue, 18 Sep 2007 19:55:43 +0000 (20:55 +0100)
committerMichel Dänzer <michel@tungstengraphics.com>
Tue, 18 Sep 2007 20:06:55 +0000 (21:06 +0100)
One instance of unlocking a spinlock was converted incorrectly when this code
was fixed to build on BSD.

shared-core/i915_irq.c

index 804e3fb..ea84c70 100644 (file)
@@ -188,7 +188,7 @@ static void i915_vblank_tasklet(struct drm_device *dev)
                DRM_SPINLOCK(&dev_priv->swaps_lock);
        }
 
-       DRM_SPINUNLOCK(&dev->drw_lock);
+       DRM_SPINUNLOCK(&dev_priv->swaps_lock);
 
        if (nhits == 0) {
                return;