]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Use default dma_fence hooks where possible for null syncobj
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 20 Sep 2018 20:05:29 +0000 (21:05 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 21 Sep 2018 09:31:12 +0000 (10:31 +0100)
commit7f155143d174b2f563b775a97fa0bad0a0d1858c
tree74ec3be39f6ddd21f59c425af8ca25f4a35ae2fe
parentdc67f9e79c96ad400839f13107ee96830f23dc40
drm: Use default dma_fence hooks where possible for null syncobj

Both the .enable_signaling and .release of the null syncobj fence
can be replaced by the default callbacks for a small reduction in code
size. In particular the default callback for .release was changed in
commit 8b5878985ee5 ("drm: rename null fence to stub fence in syncobj v2")
which neglected its RCU protection.

Fixes: 8b5878985ee5 ("drm: rename null fence to stub fence in syncobj v2")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180920200530.2836-1-chris@chris-wilson.co.uk
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_syncobj.c