aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorThorsten Blum <[email protected]>2024-07-11 17:47:43 +0200
committerJakub Kicinski <[email protected]>2024-07-13 15:43:05 -0700
commitf7023b3d697c6a7dfe2d9c70e0d8c2c580ccbd76 (patch)
tree1d35ef2c9775ce118b2983f5b1bd90eee165e5f1 /tools/perf/util/scripting-engines/trace-event-python.c
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 <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions