aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorOscar Carter <[email protected]>2020-04-20 17:52:46 +0200
committerGreg Kroah-Hartman <[email protected]>2020-04-23 13:39:51 +0200
commitbf42304b55f59af5e71c86e46291705023dce62e (patch)
tree1731508648fe913fdb2addc986f0fbfa0c66e898 /tools/perf/scripts/python
parent9f8c9f4a2e6f23fc6eeecd305bfb40ddc91e0369 (diff)
staging: vt6656: Use fls instead of for loop in vnt_update_top_rates
Replace the for loops of the vnt_update_top_rates function by the fls function. The purpose of the two for loops is to find the most significant bit set in a range of bits. So, they can be replace by the fls function (find last set) with a previous mask to define the range. This way avoid the iteration over unnecessary for loops. The header "linux/bits.h" can be remove as it is included in the header "linux/bitops.h". Signed-off-by: Oscar Carter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions