commit | abfce0414814149f716e1d30da1fb3140d1b3473 | [log] [tgz] |
---|---|---|
author | Wei Yang <richard.weiyang@gmail.com> | Sun Apr 19 21:57:15 2020 +0000 |
committer | Paul E. McKenney <paulmck@kernel.org> | Mon Jun 29 11:58:49 2020 -0700 |
tree | 865138345c93d7bcd96f9745ccdb83e560b21aaf | |
parent | 0a3b3c253a1eb2c7fe7f34086d46660c909abeb3 [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>