[intel] When polling for ring space, sleep for a lot longer (10ms)
authorKeith Packard <keithp@keithp.com>
Mon, 12 May 2008 20:03:16 +0000 (13:03 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 12 May 2008 20:03:16 +0000 (13:03 -0700)
If the ring is full, the engine will surely be running for more than 10ms.

shared-core/i915_dma.c

index 24f361e..cf2dfeb 100644 (file)
@@ -63,7 +63,7 @@ int i915_wait_ring(struct drm_device * dev, int n, const char *caller)
 
                last_head = ring->head;
                last_acthd = acthd;
-               DRM_UDELAY(10);
+               msleep_interruptible (10);
        }
 
        return -EBUSY;