]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: PPC: Switch to use hrtimer_setup()
authorNam Cao <namcao@linutronix.de>
Wed, 5 Feb 2025 10:38:46 +0000 (11:38 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 18 Feb 2025 09:32:30 +0000 (10:32 +0100)
commita0241210a3f3950bf4a28b5077108c8a126d47ec
tree46f0a0a1978c3ed63c4ad8c2da9a6ad20d3fd079
parentc97f85ddd60a5a87058ddc1054f0396c3524ae0f
KVM: PPC: 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/a58c4f16b1cfba13f96201fda355553850a97562.1738746821.git.namcao@linutronix.de
arch/powerpc/kvm/powerpc.c