]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drivers: perf: Switch to use hrtimer_setup()
authorNam Cao <namcao@linutronix.de>
Wed, 5 Feb 2025 10:46:07 +0000 (11:46 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 18 Feb 2025 10:19:04 +0000 (11:19 +0100)
commit5f8401cf7b3af468b29770d31cc993c2b6e5f027
treeb35be16b6ab3b5a62fcf602bfe719d18e057c150
parent563608c20403ebee8a5d4d4bda7c0ba75485acba
drivers: perf: 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/471ea3b829d14a4b4c3c7814dbe1ed13b15d47b8.1738746904.git.namcao@linutronix.de
drivers/perf/arm-ccn.c
drivers/perf/marvell_cn10k_ddr_pmu.c
drivers/perf/thunderx2_pmu.c