aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/time
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/time')
-rw-r--r--kernel/time/tick-sched.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c
index 85e05ab98253..da53c8f2beb5 100644
--- a/kernel/time/tick-sched.c
+++ b/kernel/time/tick-sched.c
@@ -565,11 +565,12 @@ static ktime_t tick_nohz_stop_sched_tick(struct tick_sched *ts,
565 delta_jiffies = rcu_delta_jiffies; 565 delta_jiffies = rcu_delta_jiffies;
566 } 566 }
567 } 567 }
568
568 /* 569 /*
569 * Do not stop the tick, if we are only one off 570 * Do not stop the tick, if we are only one off (or less)
570 * or if the cpu is required for rcu 571 * or if the cpu is required for RCU:
571 */ 572 */
572 if (!ts->tick_stopped && delta_jiffies == 1) 573 if (!ts->tick_stopped && delta_jiffies <= 1)
573 goto out; 574 goto out;
574 575
575 /* Schedule the tick, if we are at least one jiffie off */ 576 /* Schedule the tick, if we are at least one jiffie off */