drm/amd/display: Use pipe_control_lock instead of tg lock.

Signed-off-by: Yongqiang Sun <yongqiang.sun@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>
This commit is contained in:
Yongqiang Sun 2017-12-15 10:26:13 -05:00 committed by Alex Deucher
parent 7deff5454a
commit 8d6a741bf6
1 changed files with 2 additions and 2 deletions

View File

@ -1940,7 +1940,7 @@ static void dcn10_apply_ctx_for_surface(
tg = top_pipe_to_program->stream_res.tg;
tg->funcs->lock(tg);
dcn10_pipe_control_lock(dc, top_pipe_to_program, true);
if (num_planes == 0) {
@ -1989,7 +1989,7 @@ static void dcn10_apply_ctx_for_surface(
if (num_planes > 0)
program_all_pipe_in_tree(dc, top_pipe_to_program, context);
tg->funcs->unlock(tg);
dcn10_pipe_control_lock(dc, top_pipe_to_program, false);
if (num_planes == 0)
false_optc_underflow_wa(dc, stream, tg);