drm/syncobj: extract two helpers from drm_syncobj_create
authorMarek Olšák <marek.olsak@amd.com>
Tue, 12 Sep 2017 20:42:12 +0000 (22:42 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 Oct 2017 20:47:51 +0000 (16:47 -0400)
commit1321fd2c010e7ccb474cda6b8793747c7a3a775b
treea904ad0e94c4377d6620dd760a9706f9d187c41a
parente1827a307e96ec51a657a2b7e68a8ffc36ae2a43
drm/syncobj: extract two helpers from drm_syncobj_create

For amdgpu.

drm_syncobj_create is renamed to drm_syncobj_create_as_handle, and new
helpers drm_syncobj_create and drm_syncobj_get_handle are added.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/drm_syncobj.c
include/drm/drm_syncobj.h