mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	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
This commit is contained in:
		
							parent
							
								
									0975fb565b
								
							
						
					
					
						commit
						36cd28a4cd
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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;
 | 
			
		||||
 | 
			
		||||
	/*
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue