Re:Re: [PATCH] drm/amd/display: optimize code runtime a bit

2020-09-21 Thread Bernard
t ,Maling list - DRI developers ,LKML ,opensource.ker...@vivo.com Subject: Re: [PATCH] drm/amd/display: optimize code runtime a bit>On Mon, Sep 21, 2020 at 9:14 AM Bernard Zhao wrote: >> >> Static function dal_ddc_i2c_payloads_destroy is only called >> in dal_ddc_servic

Re: [PATCH] drm/amd/display: optimize code runtime a bit

2020-09-21 Thread Alex Deucher
On Mon, Sep 21, 2020 at 9:14 AM Bernard Zhao wrote: > > Static function dal_ddc_i2c_payloads_destroy is only called > in dal_ddc_service_query_ddc_data, the parameter is > , there is no point NULL risk, so no need to check. > This change is to make the code run a bit fast. > How about just

[PATCH] drm/amd/display: optimize code runtime a bit

2020-09-21 Thread Bernard Zhao
Static function dal_ddc_i2c_payloads_destroy is only called in dal_ddc_service_query_ddc_data, the parameter is , there is no point NULL risk, so no need to check. This change is to make the code run a bit fast. Signed-off-by: Bernard Zhao --- drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c

Re: [PATCH] drm/amd/display: optimize code runtime a bit

2020-09-15 Thread Alex Deucher
Applied. Thanks! Alex On Thu, Sep 10, 2020 at 3:23 AM Bernard Zhao wrote: > > 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 > --- >

[PATCH] drm/amd/display: optimize code runtime a bit

2020-09-09 Thread Bernard Zhao
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 --- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 14 +- 1 file changed, 5 insertions(+), 9