aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcupreempt.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/rcupreempt.c')
-rw-r--r--kernel/rcupreempt.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/kernel/rcupreempt.c b/kernel/rcupreempt.c
index 9b87f5134ed7..2748b89910b6 100644
--- a/kernel/rcupreempt.c
+++ b/kernel/rcupreempt.c
@@ -849,7 +849,7 @@ rcu_try_flip_waitzero(void)
849 /* Check to see if the sum of the "last" counters is zero. */ 849 /* Check to see if the sum of the "last" counters is zero. */
850 850
851 RCU_TRACE_ME(rcupreempt_trace_try_flip_z1); 851 RCU_TRACE_ME(rcupreempt_trace_try_flip_z1);
852 for_each_cpu(cpu, to_cpumask(rcu_cpu_online_map)) 852 for_each_possible_cpu(cpu)
853 sum += RCU_DATA_CPU(cpu)->rcu_flipctr[lastidx]; 853 sum += RCU_DATA_CPU(cpu)->rcu_flipctr[lastidx];
854 if (sum != 0) { 854 if (sum != 0) {
855 RCU_TRACE_ME(rcupreempt_trace_try_flip_ze1); 855 RCU_TRACE_ME(rcupreempt_trace_try_flip_ze1);
@@ -1067,12 +1067,6 @@ void rcu_offline_cpu(int cpu)
1067 /* seen -after- acknowledgement. */ 1067 /* seen -after- acknowledgement. */
1068 } 1068 }
1069 1069
1070 RCU_DATA_ME()->rcu_flipctr[0] += RCU_DATA_CPU(cpu)->rcu_flipctr[0];
1071 RCU_DATA_ME()->rcu_flipctr[1] += RCU_DATA_CPU(cpu)->rcu_flipctr[1];
1072
1073 RCU_DATA_CPU(cpu)->rcu_flipctr[0] = 0;
1074 RCU_DATA_CPU(cpu)->rcu_flipctr[1] = 0;
1075
1076 cpumask_clear_cpu(cpu, to_cpumask(rcu_cpu_online_map)); 1070 cpumask_clear_cpu(cpu, to_cpumask(rcu_cpu_online_map));
1077 1071
1078 spin_unlock_irqrestore(&rcu_ctrlblk.fliplock, flags); 1072 spin_unlock_irqrestore(&rcu_ctrlblk.fliplock, flags);