]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Report the ring->space from intel_ring_update_space()
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 4 May 2017 13:08:45 +0000 (14:08 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 4 May 2017 14:40:38 +0000 (15:40 +0100)
commitc5eb45942ba5c3049857ce229184d3f865d8b215
treef30a90272fa56d732bec4b3091c26539b619fc87
parentb61c8bacd99448a813ffcb9d037f11c966a0bb9a
drm/i915: Report the ring->space from intel_ring_update_space()

Some callers immediately want to know the current ring->space after
calling intel_ring_update_space(), which we can freely provide via the
return parameter.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170504130846.4807-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h