]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: fix dml log2 function
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Fri, 1 May 2020 19:43:09 +0000 (15:43 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 May 2020 18:00:48 +0000 (14:00 -0400)
commit8117767d7f6344aa6f9a4e190aecf0c7d72ad86c
tree5c7e6d88deff51b928b62c38806356cf34e97037
parente2a84726d5046f361265976e72759df8ee1220f5
drm/amd/display: fix dml log2 function

This change removes internal rounding in dml_log2 function.

Dml_log2 is expected to return a float output. In case an int is needed
dml will floor the output on it's own.

Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: Eric Bernstein <Eric.Bernstein@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dml_inline_defs.h