]> git.baikalelectronics.ru Git - kernel.git/commit
drm/1915: ringbuffer wait for idle function
authorBen Widawsky <ben@bwidawsk.net>
Sun, 20 Mar 2011 01:14:27 +0000 (18:14 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 10 May 2011 20:56:40 +0000 (13:56 -0700)
commitf887c2e402304cfff2f1d91b413fb5298af2f068
treecfb71da9613d701728520ec5f916e7cb6aa8a889
parent55f3fccc04b6588c69da48890b8fdb7f1f0938e2
drm/1915: ringbuffer wait for idle function

Added a new function which waits for the ringbuffer space to be equal to
(total - 8). This is the empty condition of the ringbuffer, and
equivalent to head==tail.

Also modified two users of this functionality elsewhere in the code.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h