diff options
Diffstat (limited to 'kernel/rcupreempt.c')
-rw-r--r-- | kernel/rcupreempt.c | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/kernel/rcupreempt.c b/kernel/rcupreempt.c index e1cdf196a515..41d275a81df5 100644 --- a/kernel/rcupreempt.c +++ b/kernel/rcupreempt.c | |||
@@ -217,8 +217,6 @@ long rcu_batches_completed(void) | |||
217 | } | 217 | } |
218 | EXPORT_SYMBOL_GPL(rcu_batches_completed); | 218 | EXPORT_SYMBOL_GPL(rcu_batches_completed); |
219 | 219 | ||
220 | EXPORT_SYMBOL_GPL(rcu_batches_completed_bh); | ||
221 | |||
222 | void __rcu_read_lock(void) | 220 | void __rcu_read_lock(void) |
223 | { | 221 | { |
224 | int idx; | 222 | int idx; |
@@ -927,26 +925,22 @@ void rcu_offline_cpu(int cpu) | |||
927 | spin_unlock_irqrestore(&rdp->lock, flags); | 925 | spin_unlock_irqrestore(&rdp->lock, flags); |
928 | } | 926 | } |
929 | 927 | ||
930 | void __devinit rcu_online_cpu(int cpu) | ||
931 | { | ||
932 | unsigned long flags; | ||
933 | |||
934 | spin_lock_irqsave(&rcu_ctrlblk.fliplock, flags); | ||
935 | cpu_set(cpu, rcu_cpu_online_map); | ||
936 | spin_unlock_irqrestore(&rcu_ctrlblk.fliplock, flags); | ||
937 | } | ||
938 | |||
939 | #else /* #ifdef CONFIG_HOTPLUG_CPU */ | 928 | #else /* #ifdef CONFIG_HOTPLUG_CPU */ |
940 | 929 | ||
941 | void rcu_offline_cpu(int cpu) | 930 | void rcu_offline_cpu(int cpu) |
942 | { | 931 | { |
943 | } | 932 | } |
944 | 933 | ||
945 | void __devinit rcu_online_cpu(int cpu) | 934 | #endif /* #else #ifdef CONFIG_HOTPLUG_CPU */ |
935 | |||
936 | void __cpuinit rcu_online_cpu(int cpu) | ||
946 | { | 937 | { |
947 | } | 938 | unsigned long flags; |
948 | 939 | ||
949 | #endif /* #else #ifdef CONFIG_HOTPLUG_CPU */ | 940 | spin_lock_irqsave(&rcu_ctrlblk.fliplock, flags); |
941 | cpu_set(cpu, rcu_cpu_online_map); | ||
942 | spin_unlock_irqrestore(&rcu_ctrlblk.fliplock, flags); | ||
943 | } | ||
950 | 944 | ||
951 | static void rcu_process_callbacks(struct softirq_action *unused) | 945 | static void rcu_process_callbacks(struct softirq_action *unused) |
952 | { | 946 | { |