]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9e9f2dfe3180ea1d8f2e378601ce4219e9d70738
treecb9a22687277394f7448410c7c414c1388011587
parenta95029cdd8381383c4f8a042019433289ca9908b
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