]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/ringbuffer: Make context pin/unpin symmetric
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 5 Jun 2018 08:53:48 +0000 (09:53 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 5 Jun 2018 14:16:07 +0000 (15:16 +0100)
commit7945c81adea38d14f5eb65fed05d8b189a892770
tree53fe447484cdc67117572c4964391fdd8a302888
parent90468a6a0017c1ed91b65b322593c850b208d0a4
drm/i915/ringbuffer: Make context pin/unpin symmetric

Currently, we have a special routine for pinning the context state at
the start of activity tracking, but lack the complementary unpin
routine. Create it to to ease later patches that want to do partial
teardown on error, and, not least, to improve the readability of the
code.

Suggested-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Matthew Auld <matthew.william.auld@gmail.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180605085348.3018-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_ringbuffer.c