Skip to content

Commit 36cd28a

Browse files
Frederic WeisbeckerKAGA-KOKO
authored andcommitted
timers: Lower base clock forwarding threshold
There is nothing that prevents from forwarding the base clock if it's one jiffy off. The reason for this arbitrary limit of two jiffies is historical and does not longer exist. Signed-off-by: Frederic Weisbecker <frederic@kernel.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Tested-by: Juri Lelli <juri.lelli@redhat.com> Link: https://lkml.kernel.org/r/20200717140551.29076-13-frederic@kernel.org
1 parent 0975fb5 commit 36cd28a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/time/timer.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ static inline void forward_timer_base(struct timer_base *base)
894894
* Also while executing timers, base->clk is 1 offset ahead
895895
* of jiffies to avoid endless requeuing to current jffies.
896896
*/
897-
if ((long)(jnow - base->clk) < 2)
897+
if ((long)(jnow - base->clk) < 1)
898898
return;
899899

900900
/*

0 commit comments

Comments
 (0)