]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
misc: vcpu_stall_detector: Switch to use hrtimer_setup()
authorNam Cao <namcao@linutronix.de>
Wed, 5 Feb 2025 10:46:10 +0000 (11:46 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 18 Feb 2025 10:19:04 +0000 (11:19 +0100)
commit7f657ad0948257d131bca6953b3b553fe9f238d6
treeb3d008823ca9adb9ecca83b0d8e4017298a7cc8a
parent3a1ed018e9950f49232600fd0d96d460e07874f9
misc: vcpu_stall_detector: 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>
Acked-by: Zack Rusin <zack.rusin@broadcom.com>
Link: https://lore.kernel.org/all/a1c984288c6e47d956c07339ced486a8ec95f8d5.1738746904.git.namcao@linutronix.de
drivers/misc/vcpu_stall_detector.c