]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rcu: Move __rcu_read_lock() and __rcu_read_unlock() to per-CPU variables
authorPaul E. McKenney <paul.mckenney@linaro.org>
Fri, 13 Apr 2012 21:32:01 +0000 (14:32 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 25 Apr 2012 03:55:31 +0000 (20:55 -0700)
commitab8fc41a8545d40a4b58d745876c125af72a8a5c
treec14ec8266298b3788e2dc591e1c17402610e58a4
parent90aec3b06194393c909e3e5a47b6ed99bb8caba5
rcu: Move __rcu_read_lock() and __rcu_read_unlock() to per-CPU variables

This commit is another step towards inlinable __rcu_read_lock() and
__rcu_read_unlock() functions for preemptible RCU.  This keeps these two
functions out of line, but switches them to use the per-CPU variables
that are required to export their definitions without requiring that
all RCU users include sched.h.  These per-CPU variables are saved and
restored at context-switch time.

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Tested-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/drivers/mconsole_kern.c
include/linux/init_task.h
include/linux/rcupdate.h
include/linux/sched.h
kernel/rcu.h
kernel/rcupdate.c
kernel/rcutiny_plugin.h
kernel/rcutree_plugin.h
kernel/sched/core.c