]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: fix 64-bit division issue on 32-bit OS
authorLang Yu <Lang.Yu@amd.com>
Fri, 22 Jan 2021 08:42:01 +0000 (16:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 25 Jan 2021 22:45:53 +0000 (17:45 -0500)
commit6bcb07f1f613a40a910dd4cbc2013f0f4f0f2653
tree3dd92663dc6f4b7431f7361638553538489bb4cb
parent13dbc9ce68678ada43e06cf6e530589b8c9db010
drm/amd/display: fix 64-bit division issue on 32-bit OS

Replace "/" with div_u64 for 32-bit OS. On 32-bit OS,
the use of "/" for 64-bit division will cause build error,
i.e. "__udivdi3/__divdi3 undefined!".

Fixes: dc550a830de3be ("drm/amd/display: Update dcn30_apply_idle_power_optimizations() code")
Signed-off-by: Lang Yu <Lang.Yu@amd.com>
Acked-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c