From: Keith Packard Date: Mon, 12 May 2008 20:03:16 +0000 (-0700) Subject: [intel] When polling for ring space, sleep for a lot longer (10ms) X-Git-Tag: submit/1.0/20121108.012404~757^2~128 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7e7ea313c4a38370194290d05697bdb6a746669d;p=profile%2Fivi%2Flibdrm.git [intel] When polling for ring space, sleep for a lot longer (10ms) If the ring is full, the engine will surely be running for more than 10ms. --- diff --git a/shared-core/i915_dma.c b/shared-core/i915_dma.c index 24f361e..cf2dfeb 100644 --- a/shared-core/i915_dma.c +++ b/shared-core/i915_dma.c @@ -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;