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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Tested-by: Juri Lelli <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 0975fb5 commit 36cd28a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)