]> asedeno.scripts.mit.edu Git - linux.git/commit
rcu: Add leaf-node macros
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sat, 14 Apr 2018 00:11:44 +0000 (17:11 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 15 May 2018 17:28:07 +0000 (10:28 -0700)
commit5b4c11d54b1b8d0714702006e00441ada59889a9
tree49e052b1402d46a7a283f29913c045ee6e36b153
parent4317228ad9b86f094d70c951f9210a8a9b2816be
rcu: Add leaf-node macros

This commit adds rcu_first_leaf_node() that returns a pointer to
the first leaf rcu_node structure in the specified RCU flavor and an
rcu_is_leaf_node() that returns true iff the specified rcu_node structure
is a leaf.  This commit also uses these macros where appropriate.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Tested-by: Nicholas Piggin <npiggin@gmail.com>
kernel/rcu/rcu.h
kernel/rcu/tree.c
kernel/rcu/tree_plugin.h