]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
riscv: kvm: Switch to use hrtimer_setup()
authorNam Cao <namcao@linutronix.de>
Wed, 5 Feb 2025 10:38:51 +0000 (11:38 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 18 Feb 2025 09:32:31 +0000 (10:32 +0100)
commit92051cb9d3e115533ff7c36ddae4e6888ac12869
treec68129205ca1524815d55934880f8996524a5b41
parent7d6f12520bd40f6e88e79de29808c7ae98185324
riscv: kvm: Switch to use hrtimer_setup()

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.

Patch was created by using Coccinelle.

Signed-off-by: Nam Cao <namcao@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/d5ededf778f59f2fc38ff4276fb7f4c893e4142c.1738746821.git.namcao@linutronix.de
arch/riscv/kvm/vcpu_timer.c