hrtimer: Remove unused function
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Fri, 22 Mar 2024 07:04:41 +0000 (15:04 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 8 Apr 2024 13:03:06 +0000 (15:03 +0200)
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
kernel/time/hrtimer.c

index 70625dff62ce10150a49110715e5edf49ff19147..cae9d04b5584cbb9cf066be613cb3c639242e7f6 100644 (file)
@@ -1875,25 +1875,7 @@ retry:
        tick_program_event(expires_next, 1);
        pr_warn_once("hrtimer: interrupt took %llu ns\n", ktime_to_ns(delta));
 }
-
-/* 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 */
+#endif /* !CONFIG_HIGH_RES_TIMERS */
 
 /*
  * Called from run_local_timers in hardirq context every jiffy