diff options
author | Geert Uytterhoeven <[email protected]> | 2019-08-30 15:45:08 +0200 |
---|---|---|
committer | Geert Uytterhoeven <[email protected]> | 2019-10-01 10:24:43 +0200 |
commit | 3e8c1d4cce6b679f4cfd81dfdbbf727f06986aa5 (patch) | |
tree | a60cba39dd1574590fe9c554e118811ed3b87048 /scripts/gdb/linux/timerlist.py | |
parent | 58256143cff7c2e0a72fe609e797a36b26a3c381 (diff) |
clk: renesas: rcar-gen2: Improve arithmetic divisions
- Use div64_ul() instead of div_u64() if the divisor is unsigned long,
to avoid truncation to 32-bit on 64-bit platforms,
- Prefer ULL constant suffixes over casts to u64,
- Prioritize multiplication over division, to increase accuracy.
Signed-off-by: Geert Uytterhoeven <[email protected]>
Reviewed-by: Niklas Söderlund <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions