tick: Move broadcast cancellation up to CPUHP_AP_TICK_DYING
authorFrederic Weisbecker <frederic@kernel.org>
Sun, 25 Feb 2024 22:55:01 +0000 (23:55 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 26 Feb 2024 10:37:32 +0000 (11:37 +0100)
commitef8969bb552c1c75e997a42d3e2c576b6ed4025a
tree969260dacad03dee49c8d6195de0b70d6f3ac7f9
parentf04e51220ad5cf35540f67f3ca15c8617c1f0bef
tick: Move broadcast cancellation up to CPUHP_AP_TICK_DYING

The broadcast shutdown code is executed through a random explicit call
within stop machine from the outgoing CPU.

However the tick broadcast is a midware between the tick callback and
the clocksource, therefore it makes more sense to shut it down after the
tick callback and before the clocksource drivers.

Move it instead to the common tick shutdown CPU hotplug state where
related operations can be ordered from highest to lowest level.

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-10-frederic@kernel.org
include/linux/tick.h
kernel/cpu.c
kernel/time/tick-common.c
kernel/time/tick-internal.h