Commit 9af8f2b4 authored by Jocelyn Falempe's avatar Jocelyn Falempe
Browse files

drm/panic: Add a u64 divide by 10 for arm32

On 32bits ARM, u64 divided by a constant is not optimized to a
multiply by inverse by the compiler [1].
So do the multiply by inverse explicitly for this architecture.

Link: https://github.com/llvm/llvm-project/issues/37280

 [1]
Reported-by: default avatarAndrei Lalaev <andrey.lalaev@gmail.com>
Closes: https://lore.kernel.org/dri-devel/c0a2771c-f3f5-4d4c-aa82-d673b3c5cb46@gmail.com/


Fixes: 675008f1 ("drm/panic: Use a decimal fifo to avoid u64 by u64 divide")
Reviewed-by: default avatarAlice Ryhl <aliceryhl@google.com>
Signed-off-by: default avatarJocelyn Falempe <jfalempe@redhat.com>
parent 36007727
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment