mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	hrtimer: Remove unused function
The function is defined, but not called anywhere: kernel/time/hrtimer.c:1880:20: warning: unused function '__hrtimer_peek_ahead_timers'. Remove it. Reported-by: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20240322070441.29646-1-jiapeng.chong@linux.alibaba.com Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8611
This commit is contained in:
		
							parent
							
								
									fec50db703
								
							
						
					
					
						commit
						82ccdf062a
					
				
					 1 changed files with 1 additions and 19 deletions
				
			
		| 
						 | 
					@ -1875,25 +1875,7 @@ void hrtimer_interrupt(struct clock_event_device *dev)
 | 
				
			||||||
	tick_program_event(expires_next, 1);
 | 
						tick_program_event(expires_next, 1);
 | 
				
			||||||
	pr_warn_once("hrtimer: interrupt took %llu ns\n", ktime_to_ns(delta));
 | 
						pr_warn_once("hrtimer: interrupt took %llu ns\n", ktime_to_ns(delta));
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					#endif /* !CONFIG_HIGH_RES_TIMERS */
 | 
				
			||||||
/* called with interrupts disabled */
 | 
					 | 
				
			||||||
static inline void __hrtimer_peek_ahead_timers(void)
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
	struct tick_device *td;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if (!hrtimer_hres_active())
 | 
					 | 
				
			||||||
		return;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	td = this_cpu_ptr(&tick_cpu_device);
 | 
					 | 
				
			||||||
	if (td && td->evtdev)
 | 
					 | 
				
			||||||
		hrtimer_interrupt(td->evtdev);
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#else /* CONFIG_HIGH_RES_TIMERS */
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static inline void __hrtimer_peek_ahead_timers(void) { }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#endif	/* !CONFIG_HIGH_RES_TIMERS */
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * Called from run_local_timers in hardirq context every jiffy
 | 
					 * Called from run_local_timers in hardirq context every jiffy
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue