]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
LoongArch: KVM: Switch to use hrtimer_setup()
authorNam Cao <namcao@linutronix.de>
Wed, 5 Feb 2025 10:38:50 +0000 (11:38 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 18 Feb 2025 09:32:31 +0000 (10:32 +0100)
commit7d6f12520bd40f6e88e79de29808c7ae98185324
tree42c1a99cded65d631304a90d9ca413ca879b9cb4
parent7e5fd922c1464bd0678491f470844884af56f810
LoongArch: 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/a5b1b53813a15a73afdfff6fbb4c9064fa582be1.1738746821.git.namcao@linutronix.de
arch/loongarch/kvm/vcpu.c