]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wait: Switch to use hrtimer_setup_sleeper_on_stack()
authorNam Cao <namcao@linutronix.de>
Thu, 31 Oct 2024 15:14:28 +0000 (16:14 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 7 Nov 2024 01:47:06 +0000 (02:47 +0100)
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 <namcao@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/fc91182375df81120a88dbe0263267e24d1bf19e.1730386209.git.namcao@linutronix.de
include/linux/wait.h

index 8aa3372f21a080caf2738799700bd965fbd2198f..643b7c7bf376a42b546f1abfab20068b72cf9c81 100644 (file)
@@ -541,8 +541,8 @@ do {                                                                                \
        int __ret = 0;                                                          \
        struct hrtimer_sleeper __t;                                             \
                                                                                \
-       hrtimer_init_sleeper_on_stack(&__t, CLOCK_MONOTONIC,                    \
-                                     HRTIMER_MODE_REL);                        \
+       hrtimer_setup_sleeper_on_stack(&__t, CLOCK_MONOTONIC,                   \
+                                      HRTIMER_MODE_REL);                       \
        if ((timeout) != KTIME_MAX) {                                           \
                hrtimer_set_expires_range_ns(&__t.timer, timeout,               \
                                        current->timer_slack_ns);               \