drm/amd/display: optimize code runtime a bit
authorBernard Zhao <bernard@vivo.com>
Thu, 10 Sep 2020 02:05:04 +0000 (19:05 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Sep 2020 21:52:43 +0000 (17:52 -0400)
commitd56b83f7c1a42c27fe499be2fb5c75a038459c04
treecb9a22687277394f7448410c7c414c1388011587
parent724dc53b922c98aced93d42d90ffd66a628069af
drm/amd/display: optimize code runtime a bit

In fnction is_cr_done & is_ch_eq_done, when done = false
happened once, no need to circle left ln_count.
This change is to make the code run a bit fast.

Signed-off-by: Bernard Zhao <bernard@vivo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c