tick: Move tick cancellation up to CPUHP_AP_TICK_DYING
authorFrederic Weisbecker <frederic@kernel.org>
Sun, 25 Feb 2024 22:55:00 +0000 (23:55 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 26 Feb 2024 10:37:31 +0000 (11:37 +0100)
commitf04e51220ad5cf35540f67f3ca15c8617c1f0bef
treeb271e38923c83973d8e02cdd246ff158795aee6e
parent3ad6eb0683a1edbb4bb117b85d61f17a879155a1
tick: Move tick cancellation up to CPUHP_AP_TICK_DYING

The tick hrtimer is cancelled right before hrtimers are migrated. This
is done from the hrtimer subsystem even though it shouldn't know about
its actual users.

Move instead the tick hrtimer cancellation to the relevant CPU hotplug
state that aims at centralizing high level tick shutdown operations so
that the related flow is easy to follow.

Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20240225225508.11587-9-frederic@kernel.org
kernel/time/hrtimer.c
kernel/time/tick-common.c