srcu: Shrink srcu.h by moving docbook and private function
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 4 May 2017 18:31:04 +0000 (11:31 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 9 Jun 2017 01:52:35 +0000 (18:52 -0700)
commit5a0465e17a18c467b712a816985b7b8dd8d10c16
treea447b6e2db322b45b935d5fbea66c32c4e3f2b6e
parentc350c008297643dad3c395c2fd92230142da5cf6
srcu: Shrink srcu.h by moving docbook and private function

The call_srcu() docbook entry is currently in include/linux/srcu.h,
which causes needless processing for each include point.  This commit
therefore moves this entry to kernel/rcu/srcutree.c, which the compiler
reads only once.  In addition, the srcu_batches_completed() function is
used only within RCU and its torture-test suites.  This commit therefore
also moves this function's declaration from include/linux/srcutiny.h,
include/linux/srcutree.h, and include/linux/srcuclassic.h to
kernel/rcu/rcu.h.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
include/linux/srcu.h
include/linux/srcuclassic.h
include/linux/srcutiny.h
include/linux/srcutree.h
kernel/rcu/rcu.h
kernel/rcu/srcutree.c