aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
authorYury Norov <yury.norov@gmail.com>2022-02-09 15:54:34 -0800
committerYury Norov <yury.norov@gmail.com>2022-05-02 06:30:40 -0700
commit5f8dac3fc7bae246cc666d0df1ba37fc077efc3d (patch)
treeb5deea1c01c92227027f60385ce72282c53d88fd /tools/perf/scripts/python/call-graph-from-sql.py
parentocteontx2-pf: replace bitmap_weight with bitmap_empty where appropriate (diff)
downloadlinux-dev-5f8dac3fc7bae246cc666d0df1ba37fc077efc3d.tar.xz
linux-dev-5f8dac3fc7bae246cc666d0df1ba37fc077efc3d.zip
qed: replace bitmap_weight with bitmap_empty in qed_roce_stop()
qed_roce_stop() calls bitmap_weight() to check if any bit of a given bitmap is set. We can do it more efficiently with bitmap_empty() because bitmap_empty() stops traversing the bitmap as soon as it finds first set bit, while bitmap_weight() counts all bits unconditionally. Signed-off-by: Yury Norov <yury.norov@gmail.com> Acked-by: Prabhakar Kushwaha <pkushwaha@marvell.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions