diff options
| author | Arnd Bergmann <[email protected]> | 2019-11-08 20:34:25 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2019-11-12 07:15:15 +0000 |
| commit | 20d087368d38c7350a4519a3b316ef7eb2504692 (patch) | |
| tree | 100e400b1bbb4909ef54689ce1907ac6ecf4e59e /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | |
| parent | hrtimer: Annotate lockless access to timer->state (diff) | |
| download | kernel-20d087368d38c7350a4519a3b316ef7eb2504692.tar.gz kernel-20d087368d38c7350a4519a3b316ef7eb2504692.zip | |
time: Optimize ns_to_timespec64()
ns_to_timespec64() calls div_s64_rem(), which is a rather slow function on
32-bit architectures, as it cannot take advantage of the do_div()
optimizations for constant arguments.
Open-code the div_s64_rem() function in ns_to_timespec64(), so a constant
divider can be passed into the optimized div_u64_rem() function.
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions
