]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
timers/migration: Fix hotplug migrator selection target on asymetric capacity machines
authorFrederic Weisbecker <frederic@kernel.org>
Tue, 19 May 2026 22:09:25 +0000 (00:09 +0200)
committerThomas Gleixner <tglx@kernel.org>
Tue, 2 Jun 2026 19:34:03 +0000 (21:34 +0200)
commite4a70f5fbd43f55b474028a2cee3d78e4b443dd7
tree65ccb00051213a3338e7cf15f1cf4af84a2d23ec
parent180a232ea78003d1dc869b217b4e49106fd58e8f
timers/migration: Fix hotplug migrator selection target on asymetric capacity machines

When a top-level migrator is deactivated, either at CPU down hotplug time
or when a CPU is domain isolated, a new migrator is elected among the
available CPUs and woken up to take over the migration duty.

However that election must happen at the scope of a given hierarchy and not
globally, which the introduction of per-capacity hierarchies failed to
handle.

As a result a given hierarchy may end up without migrator to handle global
timers.

Fix it by making sure that the new migrator belongs to the same hierarchy
as the outgoing CPU.

Fixes: 098cbaad8e57 ("timers/migration: Split per-capacity hierarchies")
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260519220926.63437-2-frederic@kernel.org
kernel/time/timer_migration.c