aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@toblux.com>2024-07-11 17:47:43 +0200
committerJakub Kicinski <kuba@kernel.org>2024-07-13 15:43:05 -0700
commitf7023b3d697c6a7dfe2d9c70e0d8c2c580ccbd76 (patch)
tree1d35ef2c9775ce118b2983f5b1bd90eee165e5f1 /tools/perf/scripts/python
parent275a63c9fe10f39066782d2d775d7d3efb20b01f (diff)
net: mvpp2: Improve data types and use min()
Change the data type of the variable freq in mvpp2_rx_time_coal_set() and mvpp2_tx_time_coal_set() to u32 because port->priv->tclk also has the data type u32. Change the data type of the function parameter clk_hz in mvpp2_usec_to_cycles() and mvpp2_cycles_to_usec() to u32 accordingly and remove the following Coccinelle/coccicheck warning reported by do_div.cocci: WARNING: do_div() does a 64-by-32 division, please consider using div64_ul instead Use min() to simplify the code and improve its readability. Compile-tested only. Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20240711154741.174745-1-thorsten.blum@toblux.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions