diff options
author | Ken Chalmers <ken.chalmers@amd.com> | 2018-12-19 14:50:20 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-01-14 15:04:45 -0500 |
commit | 32e61361b82e7ad016a83345f66ccc68865f63f4 (patch) | |
tree | 6e0dee55953f51af01b351c32a908edefab48737 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
parent | 785fd44c251c08c1490e20daec604f0f924dd7fc (diff) |
drm/amd/display: Fix 64-bit division for 32-bit builds
[Why]
32-bit builds break when doing 64-bit division directly.
[How]
Use the div_u64() function instead to perform the division.
Fixes: https://lists.freedesktop.org/archives/dri-devel/2018-December/201008.html
Signed-off-by: Ken Chalmers <ken.chalmers@amd.com>
Reviewed-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions