diff options
| author | Geert Uytterhoeven <[email protected]> | 2019-08-30 10:48:27 -0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2019-10-10 07:15:57 -0300 |
| commit | 672c29b91670ab34de288bb7015e9a12c63d007e (patch) | |
| tree | cbe95125b7839584b35c62fa34caaf407ebf989f /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | 31218df77e7f1b9b0a136990a500a7f980e6a573 (diff) | |
media: i2c: Use div64_ul() for u64-by-unsigned-long divide
div_u64() does a 64-by-32 division, while the divisor max2175.xtal_freq
is unsigned long, thus 64-bit on 64-bit platforms. Hence the proper
function to call is div64_ul().
Note that this change does not have any functional impact, as the
crystal frequency must be much lower than the 32-bit limit anyway.
On 32-bit platforms, the generated code is the same. But at least on
arm64, this saves an AND-instruction to truncate xtal_freq to 32-bit.
Signed-off-by: Geert Uytterhoeven <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions