diff options
author | 2022-05-06 15:37:39 -0700 | |
---|---|---|
committer | 2022-05-09 17:18:41 -0700 | |
commit | 4bd46bb037f8e1883dbe1fc9e79896b7f885db3f (patch) | |
tree | f2ddc804838f2febde41d71db14d68568e4f242d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ethernet: tulip: fix missing pci_disable_device() on error in tulip_init_one() (diff) | |
download | linux-dev-4bd46bb037f8e1883dbe1fc9e79896b7f885db3f.tar.xz linux-dev-4bd46bb037f8e1883dbe1fc9e79896b7f885db3f.zip |
ptp: ocp: Use DIV64_U64_ROUND_UP for rounding.
The initial code used roundup() to round the starting time to
a multiple of a period. This generated an error on 32-bit
systems, so was replaced with DIV_ROUND_UP_ULL().
However, this truncates to 32-bits on a 64-bit system. Replace
with DIV64_U64_ROUND_UP() instead.
Fixes: b325af3cfab9 ("ptp: ocp: Add signal generators and update sysfs nodes")
Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Link: https://lore.kernel.org/r/20220506223739.1930-2-jonathan.lemon@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions