diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2025-04-04 20:31:15 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2025-04-05 11:30:17 +0300 |
commit | 48ad7bbfd53af0d3fe6490a4dd30c169db6f12aa (patch) | |
tree | 4e96b28692afc86808e24dd9d6d3131844fff988 /drivers/net/netdevsim/netdev.c | |
parent | 8fa7292fee5c5240402371ea89ab285ec856c916 (diff) | |
download | linux-48ad7bbfd53af0d3fe6490a4dd30c169db6f12aa.tar.xz |
treewide: Convert new and leftover hrtimer_init() users
hrtimer_setup() takes the callback function pointer as argument and
initializes the timer completely.
Replace hrtimer_init() and the open coded initialization of
hrtimer::function with the new setup mechanism.
Coccinelle scripted cleanup.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/net/netdevsim/netdev.c')
-rw-r--r-- | drivers/net/netdevsim/netdev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/netdevsim/netdev.c b/drivers/net/netdevsim/netdev.c index ddda0c1e7a6d..0e0321a7ddd7 100644 --- a/drivers/net/netdevsim/netdev.c +++ b/drivers/net/netdevsim/netdev.c @@ -441,8 +441,8 @@ static enum hrtimer_restart nsim_napi_schedule(struct hrtimer *timer) static void nsim_rq_timer_init(struct nsim_rq *rq) { - hrtimer_init(&rq->napi_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); - rq->napi_timer.function = nsim_napi_schedule; + hrtimer_setup(&rq->napi_timer, nsim_napi_schedule, CLOCK_MONOTONIC, + HRTIMER_MODE_REL); } static void nsim_enable_napi(struct netdevsim *ns) |