]> git.karo-electronics.de Git - mv-sheeva.git/commit
drm/i915: Sleep whilst waiting for the ring
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 13 Oct 2010 09:09:14 +0000 (10:09 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Oct 2010 08:17:11 +0000 (09:17 +0100)
commite60a0b107b3df072e23cb6d68510aa2615b059ce
tree2cb350c6d8bd2a67bcb32b26e6d74808a86d042e
parent7b5337ddbaf7e4b71ef6fd6307c6f9ef84f636e9
drm/i915: Sleep whilst waiting for the ring

If userspace is submitting so many long running batches that the ring
becomes full, throttle by sleeping for a 1ms before checking for free
space. Simply yielding was causing excessive scheduler overhead whilst
making no progress.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_ringbuffer.c