Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Jiapeng Chong and committed by
Thomas Gleixner
82ccdf06 fec50db7

+1 -19
+1 -19
kernel/time/hrtimer.c
··· 1875 1875 tick_program_event(expires_next, 1); 1876 1876 pr_warn_once("hrtimer: interrupt took %llu ns\n", ktime_to_ns(delta)); 1877 1877 } 1878 - 1879 - /* called with interrupts disabled */ 1880 - static inline void __hrtimer_peek_ahead_timers(void) 1881 - { 1882 - struct tick_device *td; 1883 - 1884 - if (!hrtimer_hres_active()) 1885 - return; 1886 - 1887 - td = this_cpu_ptr(&tick_cpu_device); 1888 - if (td && td->evtdev) 1889 - hrtimer_interrupt(td->evtdev); 1890 - } 1891 - 1892 - #else /* CONFIG_HIGH_RES_TIMERS */ 1893 - 1894 - static inline void __hrtimer_peek_ahead_timers(void) { } 1895 - 1896 - #endif /* !CONFIG_HIGH_RES_TIMERS */ 1878 + #endif /* !CONFIG_HIGH_RES_TIMERS */ 1897 1879 1898 1880 /* 1899 1881 * Called from run_local_timers in hardirq context every jiffy