]> asedeno.scripts.mit.edu Git - linux.git/commit
rcu: Substitute lookup for bit-twiddling in sync_rcu_exp_select_node_cpus()
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 30 Oct 2019 13:51:57 +0000 (06:51 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 9 Dec 2019 20:24:57 +0000 (12:24 -0800)
commitaca2991a25da03ca96127b1d21e1f4aba41f81a6
treed51c511d6d0afc746ff1e92649f6312dc8288110
parent6cf539a87a61a4fbc43f625267dbcbcf283872ed
rcu: Substitute lookup for bit-twiddling in sync_rcu_exp_select_node_cpus()

The code in sync_rcu_exp_select_node_cpus() calculates the current
CPU's mask within its rcu_node structure's bitmasks, but this has
already been computed in the ->grpmask field of that CPU's rcu_data
structure.  This commit therefore just uses this ->grpmask field.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree_exp.h