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 21:32:52 +0000 (16:32 -0500)
commit92855074616f9c44229c1c3ec16421cc65e8e609
tree0e2a99d3a2dd99c593a9b9e3068dd15dea0e6257
parent772c0b59ad94e8d828355aec5494f02f807eb504
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