drm/i915: Extract context unpinning to its own function
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Thu, 28 Jan 2016 10:29:56 +0000 (10:29 +0000)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Thu, 28 Jan 2016 17:23:15 +0000 (17:23 +0000)
commita0b4a6a8dbb147159602f0f82847ccd87bee5de8
tree5dd21bbd1e0d2041bff8fd489bc67b2ab35ddf85
parent321fe304f1dd2dca025141b1d3211415af59020f
drm/i915: Extract context unpinning to its own function

Will enable cleaner implementation of a following fix and
easier code unification in the future.

Idea and code by Chris Wilson.

v2: Do not return before last_contexts on engines are unpinned.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem_context.c