drm/i915/execlists: Refactor out complete_preempt_context()
authorChris Wilson <[email protected]>
Wed, 16 May 2018 18:33:50 +0000 (19:33 +0100)
committerChris Wilson <[email protected]>
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 <[email protected]>
Cc: Jeff McGee <[email protected]>
Cc: MichaƂ Winiarski <[email protected]>
Reviewed-by: Jeff McGee <[email protected]> #v1
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/intel_guc_submission.c
drivers/gpu/drm/i915/intel_lrc.c