aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorMitch Williams <[email protected]>2016-11-08 13:05:14 -0800
committerJeff Kirsher <[email protected]>2016-12-06 20:40:50 -0800
commit4293d5f528b5a0a1b0c1b0c6eb522366822a965a (patch)
treed92287000acfb297f751aab0a6156595124663d9 /tools/perf/util/scripting-engines/trace-event-python.c
parent7ec9ba11b046b4b7fd768c366870ada60d409295 (diff)
i40e: simplify txd use count calculation
The i40e_txd_use_count function was fast but confusing. In the comments, it even admits that it's ugly. So replace it with a new function that is (very) slightly faster and has extensive commenting to help the thicker among us (including the author, who will forget in a week) understand how it works. Change-ID: Ifb533f13786a0bf39cb29f77969a5be2c83d9a87 Signed-off-by: Mitch Williams <[email protected]> Signed-off-by: Alexander Duyck <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions