Skip to content

Commit 6276a6b

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 c504b5a commit 6276a6b

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
@@ -1938,25 +1938,7 @@ void hrtimer_interrupt(struct clock_event_device *dev)
19381938
tick_program_event(expires_next, 1);
19391939
pr_warn_once("hrtimer: interrupt took %llu ns\n", ktime_to_ns(delta));
19401940
}
1941-
1942-
/* called with interrupts disabled */
1943-
static inline void __hrtimer_peek_ahead_timers(void)
1944-
{
1945-
struct tick_device *td;
1946-
1947-
if (!hrtimer_hres_active())
1948-
return;
1949-
1950-
td = this_cpu_ptr(&tick_cpu_device);
1951-
if (td && td->evtdev)
1952-
hrtimer_interrupt(td->evtdev);
1953-
}
1954-
1955-
#else /* CONFIG_HIGH_RES_TIMERS */
1956-
1957-
static inline void __hrtimer_peek_ahead_timers(void) { }
1958-
1959-
#endif /* !CONFIG_HIGH_RES_TIMERS */
1941+
#endif /* !CONFIG_HIGH_RES_TIMERS */
19601942

19611943
/*
19621944
* Called from run_local_timers in hardirq context every jiffy

0 commit comments

Comments
 (0)