Skip to content
Commit 7441e766 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

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: default avatarPaul E. McKenney <paulmck@kernel.org>
parent e1350e8e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment