drm/i915: Skip taking acquire mutex for no ref->active callback
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 31 Jul 2020 08:50:10 +0000 (09:50 +0100)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Mon, 7 Sep 2020 10:18:01 +0000 (13:18 +0300)
commit04240e30ed06498c02dd43e57dfef9433e5f1ced
tree925a9f632da863fbbe3e0f9c538bdca051427e4b
parentbde246d893fca22cf84f6fb044395ab0a47589b7
drm/i915: Skip taking acquire mutex for no ref->active callback

If no active callback is defined for i915_active, we do not need to
serialise its enabling with the mutex. We still do only want to call the
debug activate once, and must still serialise with a concurrent retire.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200731085015.32368-2-chris@chris-wilson.co.uk
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_active.c