diff options
| -rw-r--r-- | kernel/rcupreempt.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/kernel/rcupreempt.c b/kernel/rcupreempt.c index 5e02b7740702..41d275a81df5 100644 --- a/kernel/rcupreempt.c +++ b/kernel/rcupreempt.c | |||
| @@ -925,26 +925,22 @@ void rcu_offline_cpu(int cpu) | |||
| 925 | spin_unlock_irqrestore(&rdp->lock, flags); | 925 | spin_unlock_irqrestore(&rdp->lock, flags); |
| 926 | } | 926 | } |
| 927 | 927 | ||
| 928 | void __devinit rcu_online_cpu(int cpu) | ||
| 929 | { | ||
| 930 | unsigned long flags; | ||
| 931 | |||
| 932 | spin_lock_irqsave(&rcu_ctrlblk.fliplock, flags); | ||
| 933 | cpu_set(cpu, rcu_cpu_online_map); | ||
| 934 | spin_unlock_irqrestore(&rcu_ctrlblk.fliplock, flags); | ||
| 935 | } | ||
| 936 | |||
| 937 | #else /* #ifdef CONFIG_HOTPLUG_CPU */ | 928 | #else /* #ifdef CONFIG_HOTPLUG_CPU */ |
| 938 | 929 | ||
| 939 | void rcu_offline_cpu(int cpu) | 930 | void rcu_offline_cpu(int cpu) |
| 940 | { | 931 | { |
| 941 | } | 932 | } |
| 942 | 933 | ||
| 943 | void __devinit rcu_online_cpu(int cpu) | 934 | #endif /* #else #ifdef CONFIG_HOTPLUG_CPU */ |
| 935 | |||
| 936 | void __cpuinit rcu_online_cpu(int cpu) | ||
| 944 | { | 937 | { |
| 945 | } | 938 | unsigned long flags; |
| 946 | 939 | ||
| 947 | #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 | } | ||
| 948 | 944 | ||
| 949 | static void rcu_process_callbacks(struct softirq_action *unused) | 945 | static void rcu_process_callbacks(struct softirq_action *unused) |
| 950 | { | 946 | { |
