Skip to content

Commit 9788c1f

Browse files
covanamKAGA-KOKO
authored andcommitted
futex: Switch to use hrtimer_setup_sleeper_on_stack()
hrtimer_setup_sleeper_on_stack() replaces hrtimer_init_sleeper_on_stack() to keep the naming convention consistent. Convert the usage site over to it. The conversion was done with Coccinelle. Signed-off-by: Nam Cao <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/all/d92116a17313dee283ebc959869bea80fbf94cdb.1730386209.git.namcao@linutronix.de
1 parent 28e7035 commit 9788c1f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kernel/futex/core.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ futex_setup_timer(ktime_t *time, struct hrtimer_sleeper *timeout,
140140
if (!time)
141141
return NULL;
142142

143-
hrtimer_init_sleeper_on_stack(timeout, (flags & FLAGS_CLOCKRT) ?
144-
CLOCK_REALTIME : CLOCK_MONOTONIC,
145-
HRTIMER_MODE_ABS);
143+
hrtimer_setup_sleeper_on_stack(timeout,
144+
(flags & FLAGS_CLOCKRT) ? CLOCK_REALTIME : CLOCK_MONOTONIC,
145+
HRTIMER_MODE_ABS);
146146
/*
147147
* If range_ns is 0, calling hrtimer_set_expires_range_ns() is
148148
* effectively the same as calling hrtimer_set_expires().

0 commit comments

Comments
 (0)