summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorWei Yang <richard.weiyang@gmail.com>2020-04-19 21:57:15 +0000
committerPaul E. McKenney <paulmck@kernel.org>2020-06-29 11:58:49 -0700
commitabfce0414814149f716e1d30da1fb3140d1b3473 (patch)
tree865138345c93d7bcd96f9745ccdb83e560b21aaf /tools/perf/scripts/python/export-to-postgresql.py
parent0a3b3c253a1eb2c7fe7f34086d46660c909abeb3 (diff)
rcu: Simplify the calculation of rcu_state.ncpus
There is only 1 bit set in mask, which means that the only difference between oldmask and the new one will be at the position where the bit is set in mask. This commit therefore updates rcu_state.ncpus by checking whether the bit in mask is already set in rnp->expmaskinitnext. Signed-off-by: Wei Yang <richard.weiyang@gmail.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions