]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: fix 64 bit divide in freesync code
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Apr 2022 19:46:06 +0000 (15:46 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 11 Apr 2022 17:50:35 +0000 (13:50 -0400)
commitb660dbee42f1a95effda9db0f8d2edc03803f6cb
tree486652b109b6b27f2ae3f521713dd284a0108f59
parent2f18a2340b1998326b2f45c0d047acef813a91af
drm/amd/display: fix 64 bit divide in freesync code

Use div_u64() rather than a a 64 bit divide.

Fixes: 1e3aec1589a05b ("drm/amd/display: Add flip interval workaround")
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: Angus Wang <Angus.Wang@amd.com>
Cc: Anthony Koo <Anthony.Koo@amd.com>
Cc: Aric Cyr <Aric.Cyr@amd.com>
Cc: Nathan Chancellor <nathan@kernel.org>
drivers/gpu/drm/amd/display/modules/freesync/freesync.c