]> www.infradead.org Git - users/jedix/linux-maple.git/commit
alarmtimer: Switch to use hrtimer_setup() and hrtimer_setup_on_stack()
authorNam Cao <namcao@linutronix.de>
Thu, 31 Oct 2024 15:14:32 +0000 (16:14 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 7 Nov 2024 01:47:07 +0000 (02:47 +0100)
commitd82fadc727501e80cbc733f5990a682c9f46dc5e
tree76fca3fa6af38b281c780ffd61de46172a5c225a
parentfc9f59de26afb3b4a33d37f1ba51a441b050afbb
alarmtimer: Switch to use hrtimer_setup() and hrtimer_setup_on_stack()

hrtimer_setup() and hrtimer_setup_on_stack() take the callback function
pointer as argument and initialize the timer completely.

Replace the hrtimer_init*() variants and the open coded initialization of
hrtimer::function with the new setup mechanism.

Switch to use the new functions.

Signed-off-by: Nam Cao <namcao@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/2bae912336103405adcdab96b88d3ea0353b4228.1730386209.git.namcao@linutronix.de
kernel/time/alarmtimer.c