Skip to content

Commit f76b38f

Browse files
Jiapeng Chonggregkh
authored andcommitted
hrtimer: Remove unused function
[ Upstream commit 82ccdf0 ] 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 Stable-dep-of: e895f8e ("hrtimers: Unconditionally update target CPU base after offline timer migration") Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 34cac2d commit f76b38f

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

kernel/time/hrtimer.c

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1935,25 +1935,7 @@ void hrtimer_interrupt(struct clock_event_device *dev)
19351935
tick_program_event(expires_next, 1);
19361936
pr_warn_once("hrtimer: interrupt took %llu ns\n", ktime_to_ns(delta));
19371937
}
1938-
1939-
/* called with interrupts disabled */
1940-
static inline void __hrtimer_peek_ahead_timers(void)
1941-
{
1942-
struct tick_device *td;
1943-
1944-
if (!hrtimer_hres_active())
1945-
return;
1946-
1947-
td = this_cpu_ptr(&tick_cpu_device);
1948-
if (td && td->evtdev)
1949-
hrtimer_interrupt(td->evtdev);
1950-
}
1951-
1952-
#else /* CONFIG_HIGH_RES_TIMERS */
1953-
1954-
static inline void __hrtimer_peek_ahead_timers(void) { }
1955-
1956-
#endif /* !CONFIG_HIGH_RES_TIMERS */
1938+
#endif /* !CONFIG_HIGH_RES_TIMERS */
19571939

19581940
/*
19591941
* Called from run_local_timers in hardirq context every jiffy

0 commit comments

Comments
 (0)