diff options
-rw-r--r-- | kernel/rcu/tree_plugin.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h index 9e922f111d63..80a7c17907fe 100644 --- a/kernel/rcu/tree_plugin.h +++ b/kernel/rcu/tree_plugin.h | |||
@@ -1679,12 +1679,10 @@ static int rcu_oom_notify(struct notifier_block *self, | |||
1679 | */ | 1679 | */ |
1680 | atomic_set(&oom_callback_count, 1); | 1680 | atomic_set(&oom_callback_count, 1); |
1681 | 1681 | ||
1682 | get_online_cpus(); | ||
1683 | for_each_online_cpu(cpu) { | 1682 | for_each_online_cpu(cpu) { |
1684 | smp_call_function_single(cpu, rcu_oom_notify_cpu, NULL, 1); | 1683 | smp_call_function_single(cpu, rcu_oom_notify_cpu, NULL, 1); |
1685 | cond_resched_rcu_qs(); | 1684 | cond_resched_rcu_qs(); |
1686 | } | 1685 | } |
1687 | put_online_cpus(); | ||
1688 | 1686 | ||
1689 | /* Unconditionally decrement: no need to wake ourselves up. */ | 1687 | /* Unconditionally decrement: no need to wake ourselves up. */ |
1690 | atomic_dec(&oom_callback_count); | 1688 | atomic_dec(&oom_callback_count); |