diff options
author | 2019-11-08 21:34:25 +0100 | |
---|---|---|
committer | 2019-11-12 08:15:15 +0100 | |
commit | 20d087368d38c7350a4519a3b316ef7eb2504692 (patch) | |
tree | 100e400b1bbb4909ef54689ce1907ac6ecf4e59e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | hrtimer: Annotate lockless access to timer->state (diff) | |
download | wireguard-linux-20d087368d38c7350a4519a3b316ef7eb2504692.tar.xz wireguard-linux-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 <arnd@arndb.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20191108203435.112759-3-arnd@arndb.de
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions