amdgpu/dc: convert dc_transfer to use a kref.
authorDave Airlie <airlied@redhat.com>
Tue, 3 Oct 2017 02:38:57 +0000 (12:38 +1000)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 Oct 2017 17:08:55 +0000 (13:08 -0400)
commit93052132568aedb5eda04deae51d6034738a4800
tree1687927f5b0cb97f0a6439893fba65ad1eb53cfc
parent5d15ae23f8a42ce6728294808b6bd96c6b251a5f
amdgpu/dc: convert dc_transfer to use a kref.

Rolling your own atomic ref counts is frowned upon.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_surface.c
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/os_types.h