Skip to content

Commit 211647e

Browse files
covanamKAGA-KOKO
authored andcommitted
wait: 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. Signed-off-by: Nam Cao <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/all/fc91182375df81120a88dbe0263267e24d1bf19e.1730386209.git.namcao@linutronix.de
1 parent 8fae141 commit 211647e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/linux/wait.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,8 @@ do { \
541541
int __ret = 0; \
542542
struct hrtimer_sleeper __t; \
543543
\
544-
hrtimer_init_sleeper_on_stack(&__t, CLOCK_MONOTONIC, \
545-
HRTIMER_MODE_REL); \
544+
hrtimer_setup_sleeper_on_stack(&__t, CLOCK_MONOTONIC, \
545+
HRTIMER_MODE_REL); \
546546
if ((timeout) != KTIME_MAX) { \
547547
hrtimer_set_expires_range_ns(&__t.timer, timeout, \
548548
current->timer_slack_ns); \

0 commit comments

Comments
 (0)