drm/syncobj: use dma_fence_get_stub
authorChristian König <christian.koenig@amd.com>
Tue, 13 Nov 2018 13:14:00 +0000 (14:14 +0100)
committerChristian König <christian.koenig@amd.com>
Mon, 3 Dec 2018 16:40:25 +0000 (17:40 +0100)
commit86bbd89d5da66fe760049ad3f04adc407ec0c4d6
tree1edbe3482c3b995847e3417fc23d76196d3c5a19
parent078dec3326e2244c62e8a8d970ba24359e3464be
drm/syncobj: use dma_fence_get_stub

Extract of useful code from the timeline work. Let's use just a single
stub fence instance instead of allocating a new one all the time.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Link: https://patchwork.freedesktop.org/patch/265248/
drivers/gpu/drm/drm_syncobj.c