aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
authorYury Norov <yury.norov@gmail.com>2022-01-23 10:38:56 -0800
committerYury Norov <yury.norov@gmail.com>2022-06-03 06:52:57 -0700
commitb55032f1067a02c7f80943dd118060952e8bd7ac (patch)
treed24cf74d8214ffed9cd1d9d8c5f4407e6621cd4b /tools/perf/scripts/python/call-graph-from-sql.py
parentclocksource: replace cpumask_weight with cpumask_empty in clocksource.c (diff)
downloadlinux-dev-b55032f1067a02c7f80943dd118060952e8bd7ac.tar.xz
linux-dev-b55032f1067a02c7f80943dd118060952e8bd7ac.zip
mm/vmstat: replace cpumask_weight with cpumask_empty where appropriate
mm/vmstat.c code calls cpumask_weight() to check if any bit of a given cpumask is set. We can do it more efficiently with cpumask_empty() because cpumask_empty() stops traversing the cpumask as soon as it finds first set bit, while cpumask_weight() counts all bits unconditionally. Signed-off-by: Yury Norov <yury.norov@gmail.com> Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions