mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
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>
This commit is contained in:
committed by
Ingo Molnar
parent
8fa7292fee
commit
48ad7bbfd5
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user