OSDN Git Service

drm/amd/display: Compare clock state member to determine optimization.
authorYongqiang Sun <yongqiang.sun@amd.com>
Mon, 18 Nov 2019 18:45:50 +0000 (13:45 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Dec 2019 23:25:07 +0000 (18:25 -0500)
commite62dbcdb8cbcdc476175dc5a43ea7285c488fbbe
tree18fab342668c2b8ee821d70648e021ef8d5af0f2
parent7a02d2985f41539ad2196775085d05f98f4a6040
drm/amd/display: Compare clock state member to determine optimization.

[Why]
It seems always request passive flip on RN due to incorrect compare
clock state to determine optization.

[How]
Instead of calling memcmp, compare clock state member to determine the
condition.

Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c