OSDN Git Service

drm/i915: Refactor direct GPU reset from request waiters
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 23 Feb 2017 07:44:20 +0000 (07:44 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 23 Feb 2017 14:51:26 +0000 (14:51 +0000)
commite07051142cbcb991e4fedf86afd8f00425dbc89a
tree82cb3298d576cf21726f67519e051d95474851ff
parenta49625f90662799426dd99daab97559ef620dce1
drm/i915: Refactor direct GPU reset from request waiters

Combine the common code for the pair of waiters into a single function.

v2: Rename reset_request to wait_request_check_and_reset

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170223074422.4125-15-chris@chris-wilson.co.uk
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
drivers/gpu/drm/i915/i915_gem_request.c