]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - kernel/rcu/update.c
rcu: Shrink TINY_RCU by moving exit_rcu()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 11 Apr 2013 17:15:52 +0000 (10:15 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 10 Jun 2013 20:45:52 +0000 (13:45 -0700)
commit2439b696cb5303f1eeb6aeebcee19e0056c3dd6e
treed3f58ced257743911040a2cff5b03cd82aacc8a7
parent7807acdb6b794b3af42dfa1912edd4fba8d0b622
rcu: Shrink TINY_RCU by moving exit_rcu()

Now that TINY_PREEMPT_RCU is no more, exit_rcu() is always an empty
function.  But if TINY_RCU is going to have an empty function, it should
be in include/linux/rcutiny.h, where it does not bloat the kernel.
This commit therefore moves exit_rcu() out of kernel/rcupdate.c to
kernel/rcutree_plugin.h, and places a static inline empty function in
include/linux/rcutiny.h in order to shrink TINY_RCU a bit.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
include/linux/rcupdate.h
include/linux/rcutiny.h
include/linux/rcutree.h
kernel/rcupdate.c
kernel/rcutree_plugin.h