]> www.infradead.org Git - users/hch/misc.git/commitdiff
hrtimers: Delete hrtimer_init()
authorNam Cao <namcao@linutronix.de>
Wed, 5 Feb 2025 10:55:10 +0000 (11:55 +0100)
committerIngo Molnar <mingo@kernel.org>
Sat, 5 Apr 2025 08:30:17 +0000 (10:30 +0200)
hrtimer_init() is now unused. Delete it.

Signed-off-by: Nam Cao <namcao@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/all/003722f60c7a2a4f8d4ed24fb741aa313b7e5136.1738746927.git.namcao@linutronix.de
include/linux/hrtimer.h
include/linux/hrtimer_types.h
kernel/time/hrtimer.c

index 88e0788711581ea1ffb40989f8c171d1e1efae15..1adcba3ddd7660e9ae4c0419553bab1f7917af43 100644 (file)
@@ -231,8 +231,6 @@ static inline enum hrtimer_restart hrtimer_dummy_timeout(struct hrtimer *unused)
 /* Exported timer functions: */
 
 /* Initialize timers: */
-extern void hrtimer_init(struct hrtimer *timer, clockid_t which_clock,
-                        enum hrtimer_mode mode);
 extern void hrtimer_setup(struct hrtimer *timer, enum hrtimer_restart (*function)(struct hrtimer *),
                          clockid_t clock_id, enum hrtimer_mode mode);
 extern void hrtimer_setup_on_stack(struct hrtimer *timer,
index ad66a30817357e727e9005417d9edbebb7013492..7c5b27daa89d0a94470afc084bc95c8fb6556818 100644 (file)
@@ -34,7 +34,7 @@ enum hrtimer_restart {
  * @is_hard:   Set if hrtimer will be expired in hard interrupt context
  *             even on RT.
  *
- * The hrtimer structure must be initialized by hrtimer_init()
+ * The hrtimer structure must be initialized by hrtimer_setup()
  */
 struct hrtimer {
        struct timerqueue_node          node;
index 0cf8d39d650c25b36f2dfdf495d592076c141233..b7555ba7033abf9cae834a8b3b40bf4a5cfe7924 100644 (file)
@@ -1640,26 +1640,6 @@ static void __hrtimer_setup(struct hrtimer *timer,
                timer->function = function;
 }
 
-/**
- * hrtimer_init - initialize a timer to the given clock
- * @timer:     the timer to be initialized
- * @clock_id:  the clock to be used
- * @mode:       The modes which are relevant for initialization:
- *              HRTIMER_MODE_ABS, HRTIMER_MODE_REL, HRTIMER_MODE_ABS_SOFT,
- *              HRTIMER_MODE_REL_SOFT
- *
- *              The PINNED variants of the above can be handed in,
- *              but the PINNED bit is ignored as pinning happens
- *              when the hrtimer is started
- */
-void hrtimer_init(struct hrtimer *timer, clockid_t clock_id,
-                 enum hrtimer_mode mode)
-{
-       debug_init(timer, clock_id, mode);
-       __hrtimer_init(timer, clock_id, mode);
-}
-EXPORT_SYMBOL_GPL(hrtimer_init);
-
 /**
  * hrtimer_setup - initialize a timer to the given clock
  * @timer:     the timer to be initialized