Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <namcao@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/d92116a17313dee283ebc959869bea80fbf94cdb.1730386209.git.namcao@linutronix.de

authored by

Nam Cao and committed by
Thomas Gleixner
9788c1f0 28e70352

+3 -3
+3 -3
kernel/futex/core.c
··· 140 140 if (!time) 141 141 return NULL; 142 142 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); 146 146 /* 147 147 * If range_ns is 0, calling hrtimer_set_expires_range_ns() is 148 148 * effectively the same as calling hrtimer_set_expires().