]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
timers/migration: Track CPUs in a hierarchy
authorFrederic Weisbecker <frederic@kernel.org>
Thu, 23 Apr 2026 16:53:51 +0000 (18:53 +0200)
committerThomas Gleixner <tglx@kernel.org>
Wed, 6 May 2026 06:33:06 +0000 (08:33 +0200)
commit3ba25488380fd76230442df366c464c6e1fd6485
tree3000aa65c0245e9e59acc9cef8c2ba92e95fa16d
parentff65875f80d1a662d2d39e3e36345a0918766b3c
timers/migration: Track CPUs in a hierarchy

When a new root is created, the old root is connected to it and
propagates up its own assumed to be active state, since the hotplug
control CPU is itself active and part of the old root.

However with per-capacity hierarchies, this assumption won't be true
anymore because the hotplug control CPU calling the timer migration
prepare callback may not belong to the same hierarchy as the booting
CPU.

To solve this, track the available CPUs per hierarchies so that the
root connection can be offlined to safe CPUs.

Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260423165354.95152-4-frederic@kernel.org
kernel/time/timer_migration.c
kernel/time/timer_migration.h