summaryrefslogtreecommitdiffstats
path: root/kernel/time
diff options
context:
space:
mode:
authorNam Cao <namcao@linutronix.de>2024-10-31 16:14:33 +0100
committerThomas Gleixner <tglx@linutronix.de>2024-11-07 02:47:07 +0100
commit3c2fb0152175f9f596b40763cdc1378297da60af (patch)
tree7f5a6ece356a60e8340c5358824299325db237bb /kernel/time
parentd82fadc727501e80cbc733f5990a682c9f46dc5e (diff)
downloadlinux-3c2fb0152175f9f596b40763cdc1378297da60af.tar.gz
linux-3c2fb0152175f9f596b40763cdc1378297da60af.tar.bz2
linux-3c2fb0152175f9f596b40763cdc1378297da60af.zip
hrtimers: Delete hrtimer_init_on_stack()
hrtimer_init_on_stack() is now unused. Delete it. Signed-off-by: Nam Cao <namcao@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/all/510ce0d2944c4a382ea51e51d03dcfb73ba0f4f7.1730386209.git.namcao@linutronix.de
Diffstat (limited to 'kernel/time')
-rw-r--r--kernel/time/hrtimer.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c
index 376b8182b72e..55e9ffbcd49a 100644
--- a/kernel/time/hrtimer.c
+++ b/kernel/time/hrtimer.c
@@ -1630,23 +1630,6 @@ void hrtimer_setup(struct hrtimer *timer, enum hrtimer_restart (*function)(struc
EXPORT_SYMBOL_GPL(hrtimer_setup);
/**
- * hrtimer_init_on_stack - initialize a timer in stack memory
- * @timer: The timer to be initialized
- * @clock_id: The clock to be used
- * @mode: The timer mode
- *
- * Similar to hrtimer_init(), except that this one must be used if struct hrtimer is in stack
- * memory.
- */
-void hrtimer_init_on_stack(struct hrtimer *timer, clockid_t clock_id,
- enum hrtimer_mode mode)
-{
- debug_init_on_stack(timer, clock_id, mode);
- __hrtimer_init(timer, clock_id, mode);
-}
-EXPORT_SYMBOL_GPL(hrtimer_init_on_stack);
-
-/**
* hrtimer_setup_on_stack - initialize a timer on stack memory
* @timer: The timer to be initialized
* @function: the callback function