diff options
author | 2020-01-30 21:08:51 +0800 | |
---|---|---|
committer | 2020-03-04 10:17:51 +0100 | |
commit | 38f7b0b1316d435f38ec3f2bb078897b7a1cfdea (patch) | |
tree | 6897b480ecd5caf0a03c1a39904df76fb84eea36 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | timekeeping: Prevent 32bit truncation in scale64_check_overflow() (diff) | |
download | wireguard-linux-38f7b0b1316d435f38ec3f2bb078897b7a1cfdea.tar.xz wireguard-linux-38f7b0b1316d435f38ec3f2bb078897b7a1cfdea.zip |
hrtimer: Cast explicitely to u32t in __ktime_divns()
do_div() does a 64-by-32 division at least on 32bit platforms, while the
divisor 'div' is explicitly casted to unsigned long, thus 64-bit on 64-bit
platforms.
The code already ensures that the divisor is less than 2^32. Hence the
proper cast type is u32.
Signed-off-by: Wen Yang <wenyang@linux.alibaba.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20200130130851.29204-1-wenyang@linux.alibaba.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions