|
@@ -1016,7 +1016,7 @@ int rcu_needs_cpu(int cpu)
|
|
|
|
|
|
/* Don't bother unless we are the last non-dyntick-idle CPU. */
|
|
/* Don't bother unless we are the last non-dyntick-idle CPU. */
|
|
for_each_cpu_not(thatcpu, nohz_cpu_mask)
|
|
for_each_cpu_not(thatcpu, nohz_cpu_mask)
|
|
- if (thatcpu != cpu) {
|
|
|
|
|
|
+ if (cpu_online(thatcpu) && thatcpu != cpu) {
|
|
per_cpu(rcu_dyntick_drain, cpu) = 0;
|
|
per_cpu(rcu_dyntick_drain, cpu) = 0;
|
|
per_cpu(rcu_dyntick_holdoff, cpu) = jiffies - 1;
|
|
per_cpu(rcu_dyntick_holdoff, cpu) = jiffies - 1;
|
|
return rcu_needs_cpu_quick_check(cpu);
|
|
return rcu_needs_cpu_quick_check(cpu);
|