Skip to content

Commit fcea1cc

Browse files
covanamIngo Molnar
authored andcommitted
hrtimers: Rename __hrtimer_init_sleeper() to __hrtimer_setup_sleeper()
All the hrtimer_init*() functions have been renamed to hrtimer_setup*(). Rename __hrtimer_init_sleeper() to __hrtimer_setup_sleeper() as well, to keep the names consistent. 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/807694aedad9353421c4a7347629a30c5c31026f.1738746927.git.namcao@linutronix.de
1 parent 1cc24f2 commit fcea1cc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

kernel/time/hrtimer.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2016,7 +2016,7 @@ void hrtimer_sleeper_start_expires(struct hrtimer_sleeper *sl,
20162016
* Make the enqueue delivery mode check work on RT. If the sleeper
20172017
* was initialized for hard interrupt delivery, force the mode bit.
20182018
* This is a special case for hrtimer_sleepers because
2019-
* __hrtimer_init_sleeper() determines the delivery mode on RT so the
2019+
* __hrtimer_setup_sleeper() determines the delivery mode on RT so the
20202020
* fiddling with this decision is avoided at the call sites.
20212021
*/
20222022
if (IS_ENABLED(CONFIG_PREEMPT_RT) && sl->timer.is_hard)
@@ -2026,8 +2026,8 @@ void hrtimer_sleeper_start_expires(struct hrtimer_sleeper *sl,
20262026
}
20272027
EXPORT_SYMBOL_GPL(hrtimer_sleeper_start_expires);
20282028

2029-
static void __hrtimer_init_sleeper(struct hrtimer_sleeper *sl,
2030-
clockid_t clock_id, enum hrtimer_mode mode)
2029+
static void __hrtimer_setup_sleeper(struct hrtimer_sleeper *sl,
2030+
clockid_t clock_id, enum hrtimer_mode mode)
20312031
{
20322032
/*
20332033
* On PREEMPT_RT enabled kernels hrtimers which are not explicitly
@@ -2067,7 +2067,7 @@ void hrtimer_setup_sleeper_on_stack(struct hrtimer_sleeper *sl,
20672067
clockid_t clock_id, enum hrtimer_mode mode)
20682068
{
20692069
debug_init_on_stack(&sl->timer, clock_id, mode);
2070-
__hrtimer_init_sleeper(sl, clock_id, mode);
2070+
__hrtimer_setup_sleeper(sl, clock_id, mode);
20712071
}
20722072
EXPORT_SYMBOL_GPL(hrtimer_setup_sleeper_on_stack);
20732073

0 commit comments

Comments
 (0)