diff options
author | Harry Wentland <harry.wentland@amd.com> | 2017-08-28 18:43:45 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-09-26 18:17:33 -0400 |
commit | 4a6295361c737a80e9f079952ac863a3b0c26acf (patch) | |
tree | 140d7d9c74fd0ea2a08d74831ceb151f0c28017c /drivers/gpu/drm/amd/display/dc/inc/resource.h | |
parent | 83524646611381c4b0e31ffc5286cb05f8818aba (diff) |
drm/amd/display: Don't reset clock source at unref
Powering down the clock source during unref is unsafe as we might want
to unref during atomic_check
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/inc/resource.h')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/inc/resource.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/inc/resource.h b/drivers/gpu/drm/amd/display/dc/inc/resource.h index 41437da5fb9b..cf1797c191e9 100644 --- a/drivers/gpu/drm/amd/display/dc/inc/resource.h +++ b/drivers/gpu/drm/amd/display/dc/inc/resource.h @@ -92,10 +92,10 @@ enum dc_status resource_build_scaling_params_for_context( void resource_build_info_frame(struct pipe_ctx *pipe_ctx); -void resource_unreference_clock_source( +bool resource_unreference_clock_source( struct resource_context *res_ctx, const struct resource_pool *pool, - struct clock_source **clock_source); + struct clock_source *clock_source); void resource_reference_clock_source( struct resource_context *res_ctx, |