OSDN Git Service

drm/i915: Use reservation_object_lock()
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 21 Feb 2017 09:17:23 +0000 (09:17 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 21 Feb 2017 12:48:51 +0000 (12:48 +0000)
commite2989f140e707f31afa5fa617512961b3f692aca
tree5c551985dfc00a63e263cc99cfde25298d8364fe
parent944a36d472be642d0d082d2480fe2b40046602a9
drm/i915: Use reservation_object_lock()

Replace the calls to ww_mutex_lock(&resv->lock) with the helper
reservation_object_lock(resv) and similarly for unlock.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170221091723.6219-1-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_gem_batch_pool.c
drivers/gpu/drm/i915/i915_gem_execbuffer.c