]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched/idle: Switch to use hrtimer_setup_on_stack()
authorNam Cao <namcao@linutronix.de>
Thu, 31 Oct 2024 15:14:30 +0000 (16:14 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 7 Nov 2024 01:47:06 +0000 (02:47 +0100)
commit46d076af6d640774a7a8bd6ebf130c22913d3bdb
treee9d9b1b8cd9233638344ff2919cbdd49ce707e1a
parentf3bef7aaa6c807b78e8fc6929c3226d3038fe505
sched/idle: Switch to use hrtimer_setup_on_stack()

hrtimer_setup_on_stack() takes the callback function pointer as argument
and initializes the timer completely.

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

The conversion was done with Coccinelle.

Signed-off-by: Nam Cao <namcao@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/17f9421fed6061df4ad26a4cc91873d2c078cb0f.1730386209.git.namcao@linutronix.de
kernel/sched/idle.c