diff options
author | Haihao Xiang <haihao.xiang@intel.com> | 2007-01-12 11:24:14 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2007-01-12 11:24:50 -0800 |
commit | 9d3deddc4a8f12b9493858a529570e77f8362ad1 (patch) | |
tree | 7ce4f0b4cadd13a373646f15d2868660ffeb44e1 | |
parent | 4297a83b48664b2b6a6dc0a72a4d11b043f34778 (diff) |
Delay for a usec while spinning waiting for ring buffer space.
This means the loop will wait up to ~10ms for ring buffer space to become
available, rather than just however long it takes to check the space 10000
times. This matches other drivers' behavior when waiting for ring buffer/fifo
space.
-rw-r--r-- | shared-core/i915_dma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/shared-core/i915_dma.c b/shared-core/i915_dma.c index 943a1772..912fe0b1 100644 --- a/shared-core/i915_dma.c +++ b/shared-core/i915_dma.c @@ -63,6 +63,7 @@ int i915_wait_ring(drm_device_t * dev, int n, const char *caller) i = 0; last_head = ring->head; + DRM_UDELAY(1); } return DRM_ERR(EBUSY); |