]> Git Repo - linux.git/commitdiff
timers: Lower base clock forwarding threshold
authorFrederic Weisbecker <[email protected]>
Fri, 17 Jul 2020 14:05:51 +0000 (16:05 +0200)
committerThomas Gleixner <[email protected]>
Fri, 17 Jul 2020 19:55:25 +0000 (21:55 +0200)
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]
kernel/time/timer.c

index 8b3fb52d8c4793deae2ce7bf9d6e332c17ee0f3e..77e21e98ec324d4d4eb1eaff738d79005489df29 100644 (file)
@@ -894,7 +894,7 @@ static inline void forward_timer_base(struct timer_base *base)
         * Also while executing timers, base->clk is 1 offset ahead
         * of jiffies to avoid endless requeuing to current jffies.
         */
-       if ((long)(jnow - base->clk) < 2)
+       if ((long)(jnow - base->clk) < 1)
                return;
 
        /*
This page took 0.057179 seconds and 4 git commands to generate.