OSDN Git Service

amdgpu/dc: use kref for dc_state.
authorDave Airlie <airlied@redhat.com>
Tue, 3 Oct 2017 02:39:02 +0000 (12:39 +1000)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 Oct 2017 17:10:25 +0000 (13:10 -0400)
commit8ee5702afdd48b5864c46418ad310d6a23c8e9ab
tree2886f82300588766615d0618573604d58fd877a3
parentcb56aceabd36ef42bc7e081c43dc55ef57efba7a
amdgpu/dc: use kref for dc_state.

I'm not a huge fan of those copying around refcounts bits, might
want to consider alternates, but this should work for now.

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.c
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
drivers/gpu/drm/amd/display/dc/inc/core_types.h