]> git.baikalelectronics.ru Git - kernel.git/commit
drm: mali-dp: use div_u64 for expensive 64-bit divisions
authorArnd Bergmann <arnd@arndb.de>
Tue, 25 Apr 2017 19:56:53 +0000 (21:56 +0200)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Wed, 26 Apr 2017 16:54:58 +0000 (17:54 +0100)
commit632368546d4d64de5bd0710873e12879bf2ad19c
treeea546747872e054429aab11defc21a0987ccd898
parent14899dc042ea1a6cf37ae89f4c356249e3db3cc5
drm: mali-dp: use div_u64 for expensive 64-bit divisions

On 32-bit machines, we can't divide 64-bit integers:

drivers/gpu/drm/arm/malidp_crtc.o: In function `malidp_crtc_atomic_check':
malidp_crtc.c:(.text.malidp_crtc_atomic_check+0x3c0): undefined reference to `__aeabi_uldivmod'
malidp_crtc.c:(.text.malidp_crtc_atomic_check+0x3dc): undefined reference to `__aeabi_uldivmod'

This calls the div_u64 function explicitly instead.

Fixes: 4cea4e9f6690 ("drm: mali-dp: Add plane upscaling support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/gpu/drm/arm/malidp_crtc.c