diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2010-08-17 17:18:46 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2010-08-20 12:00:16 -0400 |
commit | 7b0b759b65247cbc66384a912be9acf8d4800636 (patch) | |
tree | 085a18f506193725ab16fa61cae41f93dcc7c3e9 /kernel/rcutree_plugin.h | |
parent | 73d4da4d360136826b36f78f5cf72b29da82c8a6 (diff) |
rcu: combine duplicate code, courtesy of CONFIG_PREEMPT_RCU
The CONFIG_PREEMPT_RCU kernel configuration parameter was recently
re-introduced, but as an indication of the type of RCU (preemptible
vs. non-preemptible) instead of as selecting a given implementation.
This commit uses CONFIG_PREEMPT_RCU to combine duplicate code
from include/linux/rcutiny.h and include/linux/rcutree.h into
include/linux/rcupdate.h. This commit also combines a few other pieces
of duplicate code that have accumulated.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcutree_plugin.h')
-rw-r--r-- | kernel/rcutree_plugin.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/kernel/rcutree_plugin.h b/kernel/rcutree_plugin.h index 561410f70d4a..87f60f06b18e 100644 --- a/kernel/rcutree_plugin.h +++ b/kernel/rcutree_plugin.h | |||
@@ -939,15 +939,6 @@ static void rcu_preempt_process_callbacks(void) | |||
939 | } | 939 | } |
940 | 940 | ||
941 | /* | 941 | /* |
942 | * In classic RCU, call_rcu() is just call_rcu_sched(). | ||
943 | */ | ||
944 | void call_rcu(struct rcu_head *head, void (*func)(struct rcu_head *rcu)) | ||
945 | { | ||
946 | call_rcu_sched(head, func); | ||
947 | } | ||
948 | EXPORT_SYMBOL_GPL(call_rcu); | ||
949 | |||
950 | /* | ||
951 | * Wait for an rcu-preempt grace period, but make it happen quickly. | 942 | * Wait for an rcu-preempt grace period, but make it happen quickly. |
952 | * But because preemptable RCU does not exist, map to rcu-sched. | 943 | * But because preemptable RCU does not exist, map to rcu-sched. |
953 | */ | 944 | */ |