aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcutiny.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2010-03-30 18:50:01 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2010-05-10 14:08:32 -0400
commit99652b54de1ee094236f7171485214071af4ef31 (patch)
treefd3691aacd46a6afd9ee6ae6f38ca5e9aafb5783 /kernel/rcutiny.c
parentda848c47bc6e873a54a445ea1960423a495b6b32 (diff)
rcu: rename rcutiny rcu_ctrlblk to rcu_sched_ctrlblk
Make naming line up in preparation for CONFIG_TINY_PREEMPT_RCU. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcutiny.c')
-rw-r--r--kernel/rcutiny.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/kernel/rcutiny.c b/kernel/rcutiny.c
index 272c6d21a75f..d9f8a623c9fa 100644
--- a/kernel/rcutiny.c
+++ b/kernel/rcutiny.c
@@ -44,9 +44,9 @@ struct rcu_ctrlblk {
44}; 44};
45 45
46/* Definition for rcupdate control block. */ 46/* Definition for rcupdate control block. */
47static struct rcu_ctrlblk rcu_ctrlblk = { 47static struct rcu_ctrlblk rcu_sched_ctrlblk = {
48 .donetail = &rcu_ctrlblk.rcucblist, 48 .donetail = &rcu_sched_ctrlblk.rcucblist,
49 .curtail = &rcu_ctrlblk.rcucblist, 49 .curtail = &rcu_sched_ctrlblk.rcucblist,
50}; 50};
51 51
52static struct rcu_ctrlblk rcu_bh_ctrlblk = { 52static struct rcu_ctrlblk rcu_bh_ctrlblk = {
@@ -108,7 +108,8 @@ static int rcu_qsctr_help(struct rcu_ctrlblk *rcp)
108 */ 108 */
109void rcu_sched_qs(int cpu) 109void rcu_sched_qs(int cpu)
110{ 110{
111 if (rcu_qsctr_help(&rcu_ctrlblk) + rcu_qsctr_help(&rcu_bh_ctrlblk)) 111 if (rcu_qsctr_help(&rcu_sched_ctrlblk) +
112 rcu_qsctr_help(&rcu_bh_ctrlblk))
112 raise_softirq(RCU_SOFTIRQ); 113 raise_softirq(RCU_SOFTIRQ);
113} 114}
114 115
@@ -173,7 +174,7 @@ static void __rcu_process_callbacks(struct rcu_ctrlblk *rcp)
173 */ 174 */
174static void rcu_process_callbacks(struct softirq_action *unused) 175static void rcu_process_callbacks(struct softirq_action *unused)
175{ 176{
176 __rcu_process_callbacks(&rcu_ctrlblk); 177 __rcu_process_callbacks(&rcu_sched_ctrlblk);
177 __rcu_process_callbacks(&rcu_bh_ctrlblk); 178 __rcu_process_callbacks(&rcu_bh_ctrlblk);
178} 179}
179 180
@@ -221,7 +222,7 @@ static void __call_rcu(struct rcu_head *head,
221 */ 222 */
222void call_rcu(struct rcu_head *head, void (*func)(struct rcu_head *rcu)) 223void call_rcu(struct rcu_head *head, void (*func)(struct rcu_head *rcu))
223{ 224{
224 __call_rcu(head, func, &rcu_ctrlblk); 225 __call_rcu(head, func, &rcu_sched_ctrlblk);
225} 226}
226EXPORT_SYMBOL_GPL(call_rcu); 227EXPORT_SYMBOL_GPL(call_rcu);
227 228