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>
Showing
- include/linux/srcu.h 0 additions, 20 deletionsinclude/linux/srcu.h
- include/linux/srcuclassic.h 0 additions, 1 deletioninclude/linux/srcuclassic.h
- include/linux/srcutiny.h 0 additions, 5 deletionsinclude/linux/srcutiny.h
- include/linux/srcutree.h 0 additions, 1 deletioninclude/linux/srcutree.h
- kernel/rcu/rcu.h 6 additions, 0 deletionskernel/rcu/rcu.h
- kernel/rcu/srcutree.c 17 additions, 0 deletionskernel/rcu/srcutree.c
Loading
Please register or sign in to comment