aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorYury Norov <[email protected]>2022-02-10 14:48:52 -0800
committerDmitry Baryshkov <[email protected]>2022-02-18 18:33:02 +0300
commit16b323ddf995d1943eed4a96367e6e761636192e (patch)
treed512b2913e7f9507c6e2a3d62fa3a7df7032b719 /tools/perf/scripts/python/syscall-counts-by-pid.py
parent26291c54e111ff6ba87a164d85d4a4e134b7315c (diff)
drm: replace bitmap_weight with bitmap_empty where appropriate
smp_request_block() in drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c calls bitmap_weight() to check if any bit of a given bitmap is set. It's better to use bitmap_empty() in that case 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 <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Baryshkov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions