aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcupdate.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/rcupdate.c')
-rw-r--r--kernel/rcupdate.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/kernel/rcupdate.c b/kernel/rcupdate.c
index 7625f207f65e..eb6b534db318 100644
--- a/kernel/rcupdate.c
+++ b/kernel/rcupdate.c
@@ -161,28 +161,6 @@ EXPORT_SYMBOL_GPL(synchronize_rcu_bh);
161 161
162#endif /* #ifndef CONFIG_TINY_RCU */ 162#endif /* #ifndef CONFIG_TINY_RCU */
163 163
164static int __cpuinit rcu_barrier_cpu_hotplug(struct notifier_block *self,
165 unsigned long action, void *hcpu)
166{
167 return rcu_cpu_notify(self, action, hcpu);
168}
169
170void __init rcu_init(void)
171{
172 int i;
173
174 __rcu_init();
175 cpu_notifier(rcu_barrier_cpu_hotplug, 0);
176
177 /*
178 * We don't need protection against CPU-hotplug here because
179 * this is called early in boot, before either interrupts
180 * or the scheduler are operational.
181 */
182 for_each_online_cpu(i)
183 rcu_barrier_cpu_hotplug(NULL, CPU_UP_PREPARE, (void *)(long)i);
184}
185
186void rcu_scheduler_starting(void) 164void rcu_scheduler_starting(void)
187{ 165{
188 WARN_ON(num_online_cpus() != 1); 166 WARN_ON(num_online_cpus() != 1);