]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf/x86: Switch to use hrtimer_setup()
authorNam Cao <namcao@linutronix.de>
Wed, 5 Feb 2025 10:38:55 +0000 (11:38 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 18 Feb 2025 09:32:31 +0000 (10:32 +0100)
commitc56c98e5af6d912c07b4e1e7be8ee97b0ff6ab27
treecaa1024f15cafbdd7c78dc469d9e8f61720f5e75
parentd1f0d81b3604506cdd128578f778b899bd142b94
perf/x86: 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/e84ad5a660b8e10867e547db8e64f7e99c48ebba.1738746821.git.namcao@linutronix.de
arch/x86/events/intel/uncore.c
arch/x86/events/rapl.c