]> git.karo-electronics.de Git - linux-beck.git/commit
rcu: Further shrink Tiny RCU by making empty functions static inlines
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 21 Apr 2015 18:15:30 +0000 (11:15 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 27 May 2015 19:59:31 +0000 (12:59 -0700)
commit51952bc633064311410b041fad38da1614f4539e
tree43f42f45e43ccb22af1ad10a88573675c01681a9
parent7d0ae8086b828311250c6afdf800b568ac9bd693
rcu: Further shrink Tiny RCU by making empty functions static inlines

The Tiny RCU counterparts to rcu_idle_enter(), rcu_idle_exit(),
rcu_irq_enter(), and rcu_irq_exit() are empty functions, but each has
EXPORT_SYMBOL_GPL(), which needlessly consumes extra memory, especially
in kernels built with module support.  This commit therefore moves these
functions to static inlines in rcutiny.h, removing the need for exports.

This won't affect the size of the tiniest kernels, which are likely
built without module support, but might help semi-tiny kernels that
might include module support.

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/rcu/tiny.c