diff options
| author | Jocelyn Falempe <[email protected]> | 2025-06-27 12:38:19 +0000 |
|---|---|---|
| committer | Jocelyn Falempe <[email protected]> | 2025-08-12 07:33:05 +0000 |
| commit | 9af8f2b469c0438620832f3729a3c5c03853b56b (patch) | |
| tree | f90174d2771ccf175f90192788dbfe8f1c5b4e49 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | rust: drm: don't pass the address of drm::Device to drm_dev_put() (diff) | |
| download | kernel-9af8f2b469c0438620832f3729a3c5c03853b56b.tar.gz kernel-9af8f2b469c0438620832f3729a3c5c03853b56b.zip | |
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: Andrei Lalaev <[email protected]>
Closes: https://lore.kernel.org/dri-devel/[email protected]/
Fixes: 675008f196ca ("drm/panic: Use a decimal fifo to avoid u64 by u64 divide")
Reviewed-by: Alice Ryhl <[email protected]>
Signed-off-by: Jocelyn Falempe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions
