drm/amd/display: Fix 64 bit divisions on 32 bit platforms by using div64 API
authorVladimir Stempen <vladimir.stempen@amd.com>
Wed, 24 Feb 2021 19:02:32 +0000 (14:02 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 2 Mar 2021 19:07:59 +0000 (14:07 -0500)
commit783bf4035cb7f2707ad760fbc06f6be01a553f0a
tree227c008f5b0c41de8ebf935f90bc10219169f4c5
parent640a28b50c4ad502b931750f13a5f743449e5755
drm/amd/display: Fix 64 bit divisions on 32 bit platforms by using div64 API

[why]
Synchronization displays with different timings feature uses division
operator for 64 bit division, which is not supported by 32 bit platforms

[how]
Use div64 API for 64 bit division

Signed-off-by: Vladimir Stempen <vladimir.stempen@amd.com>
Tested-by: Bindu Ramamurthy<bindu.r@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c