Skip to content

Commit 82ccdf0

Browse files
wb-zjp846396KAGA-KOKO
authored andcommitted
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
1 parent fec50db commit 82ccdf0

1 file changed

Lines changed: 1 addition & 19 deletions

File tree

kernel/time/hrtimer.c

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1875,25 +1875,7 @@ void hrtimer_interrupt(struct clock_event_device *dev)
18751875
tick_program_event(expires_next, 1);
18761876
pr_warn_once("hrtimer: interrupt took %llu ns\n", ktime_to_ns(delta));
18771877
}
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 */
18971879

18981880
/*
18991881
* Called from run_local_timers in hardirq context every jiffy

0 commit comments

Comments
 (0)