diff options
Diffstat (limited to 'kernel/time/tick-sched.c')
-rw-r--r-- | kernel/time/tick-sched.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index 95e41f7f850b..9234e44fc94a 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c | |||
@@ -191,19 +191,19 @@ void tick_nohz_stop_sched_tick(void) | |||
191 | next_jiffies = get_next_timer_interrupt(last_jiffies); | 191 | next_jiffies = get_next_timer_interrupt(last_jiffies); |
192 | delta_jiffies = next_jiffies - last_jiffies; | 192 | delta_jiffies = next_jiffies - last_jiffies; |
193 | 193 | ||
194 | if (rcu_needs_cpu(cpu)) | ||
195 | delta_jiffies = 1; | ||
194 | /* | 196 | /* |
195 | * Do not stop the tick, if we are only one off | 197 | * Do not stop the tick, if we are only one off |
196 | * or if the cpu is required for rcu | 198 | * or if the cpu is required for rcu |
197 | */ | 199 | */ |
198 | if (!ts->tick_stopped && (delta_jiffies == 1 || rcu_needs_cpu(cpu))) | 200 | if (!ts->tick_stopped && delta_jiffies == 1) |
199 | goto out; | 201 | goto out; |
200 | 202 | ||
201 | /* Schedule the tick, if we are at least one jiffie off */ | 203 | /* Schedule the tick, if we are at least one jiffie off */ |
202 | if ((long)delta_jiffies >= 1) { | 204 | if ((long)delta_jiffies >= 1) { |
203 | 205 | ||
204 | if (rcu_needs_cpu(cpu)) | 206 | if (delta_jiffies > 1) |
205 | delta_jiffies = 1; | ||
206 | else | ||
207 | cpu_set(cpu, nohz_cpu_mask); | 207 | cpu_set(cpu, nohz_cpu_mask); |
208 | /* | 208 | /* |
209 | * nohz_stop_sched_tick can be called several times before | 209 | * nohz_stop_sched_tick can be called several times before |