drm/i915: Use atomic for dev_priv->mm.bsd_engine_dispatch_index
authorJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Thu, 1 Sep 2016 11:58:21 +0000 (14:58 +0300)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Thu, 1 Sep 2016 12:39:25 +0000 (15:39 +0300)
commit6f633402847635817fd5eddb2d0e0a50cd521c1e
tree0cfbbe8553263ab7a16eace691521790c186fe74
parent5423adf1d4c692ff300f9f4262e2d5241d4fe561
drm/i915: Use atomic for dev_priv->mm.bsd_engine_dispatch_index

Use atomic type and operands for dev_priv->mm.bsd_engine_dispatch_index
to avoid one struct_mutex locking scenario.

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Imre Deak <imre.deak@intel.com>
Cc: Zhao Yakui <yakui.zhao@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1472731101-21982-1-git-send-email-joonas.lahtinen@linux.intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_execbuffer.c