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.

net: pktgen: 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/c4b40b8fef250b6a325e1b8bd6057005fb3cb660.1730386209.git.namcao@linutronix.de

authored by

Nam Cao and committed by
Thomas Gleixner
eb688451 9788c1f0

+1 -1
+1 -1
net/core/pktgen.c
··· 2285 2285 s64 remaining; 2286 2286 struct hrtimer_sleeper t; 2287 2287 2288 - hrtimer_init_sleeper_on_stack(&t, CLOCK_MONOTONIC, HRTIMER_MODE_ABS); 2288 + hrtimer_setup_sleeper_on_stack(&t, CLOCK_MONOTONIC, HRTIMER_MODE_ABS); 2289 2289 hrtimer_set_expires(&t.timer, spin_until); 2290 2290 2291 2291 remaining = ktime_to_ns(hrtimer_expires_remaining(&t.timer));