drm/i915: Rearrange code to only have a single method for waiting upon the ring
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 27 Nov 2012 16:22:54 +0000 (16:22 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 29 Nov 2012 10:43:53 +0000 (11:43 +0100)
commit3e9605018ab3e333d51cc90fccfde2031886763b
tree101b6600bbe9977dc0f9d296329d03158eba1075
parentb662a0663230853fccdfceeda5db031f5d4b657c
drm/i915: Rearrange code to only have a single method for waiting upon the ring

Replace the wait for the ring to be clear with the more common wait for
the ring to be idle. The principle advantage is one less exported
intel_ring_wait function, and the removal of a hardcoded value.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/intel_pm.c
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h