]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
blk_iocost: Switch to use hrtimer_setup()
authorNam Cao <namcao@linutronix.de>
Wed, 5 Feb 2025 10:39:11 +0000 (11:39 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 18 Feb 2025 09:32:34 +0000 (10:32 +0100)
commitcab0e0a05627f7e661aa644a3a5f0eb88881872f
treefa1acf1f84f12b2a5b0323a59c9cecfe189e4cd4
parent32539b780c4fc3641a37ad9cb6134d72b5c8cae9
blk_iocost: 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/196d487c925411923a2d59d4bf5e366b9dac2747.1738746821.git.namcao@linutronix.de
block/blk-iocost.c