]> git.baikalelectronics.ru Git - kernel.git/commit
rcu: Switch force_qs_rnp() to for_each_leaf_node_cpu_mask()
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 30 Oct 2019 16:37:11 +0000 (09:37 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 24 Jan 2020 18:33:51 +0000 (10:33 -0800)
commit0aadee95828c4d43f5a8859e848d8fd3d665a620
tree98190324d8df81f5364fd7793e4d17256bb39b28
parentbcdd624121a40fbe0fe213ffa06c67c242c21cb9
rcu: Switch force_qs_rnp() to for_each_leaf_node_cpu_mask()

Currently, force_qs_rnp() uses a for_each_leaf_node_possible_cpu()
loop containing a check of the current CPU's bit in ->qsmask.
This works, but this commit saves three lines by instead using
for_each_leaf_node_cpu_mask(), which combines the functionality of
for_each_leaf_node_possible_cpu() and leaf_node_cpu_bit().  This commit
also replaces the use of the local variable "bit" with rdp->grpmask.

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