drm/i915/execlists: Refactor out complete_preempt_context()
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 16 May 2018 18:33:50 +0000 (19:33 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 16 May 2018 19:20:34 +0000 (20:20 +0100)
commitef2fb7204638f0c67446a90b75e1eae4330682f8
tree6c4512487f61c526f6862dfbf0dcb192625d1d01
parentf351d087d8329a08eca9e69872c3906c139e1f11
drm/i915/execlists: Refactor out complete_preempt_context()

As a complement to inject_preempt_context(), follow up with the function
to handle its completion. This will be useful should we wish to extend
the duties of the preempt-context for execlists.

v2: And do the same for the guc.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jeff McGee <jeff.mcgee@intel.com>
Cc: MichaƂ Winiarski <michal.winiarski@intel.com>
Reviewed-by: Jeff McGee <jeff.mcgee@intel.com> #v1
Link: https://patchwork.freedesktop.org/patch/msgid/20180516183355.10553-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_guc_submission.c
drivers/gpu/drm/i915/intel_lrc.c