|
@@ -1679,12 +1679,10 @@ static int rcu_oom_notify(struct notifier_block *self,
|
|
*/
|
|
*/
|
|
atomic_set(&oom_callback_count, 1);
|
|
atomic_set(&oom_callback_count, 1);
|
|
|
|
|
|
- get_online_cpus();
|
|
|
|
for_each_online_cpu(cpu) {
|
|
for_each_online_cpu(cpu) {
|
|
smp_call_function_single(cpu, rcu_oom_notify_cpu, NULL, 1);
|
|
smp_call_function_single(cpu, rcu_oom_notify_cpu, NULL, 1);
|
|
cond_resched_rcu_qs();
|
|
cond_resched_rcu_qs();
|
|
}
|
|
}
|
|
- put_online_cpus();
|
|
|
|
|
|
|
|
/* Unconditionally decrement: no need to wake ourselves up. */
|
|
/* Unconditionally decrement: no need to wake ourselves up. */
|
|
atomic_dec(&oom_callback_count);
|
|
atomic_dec(&oom_callback_count);
|