]> www.infradead.org Git - users/jedix/linux-maple.git/commit
timers/migration: Simplify top level detection on group setup
authorFrederic Weisbecker <frederic@kernel.org>
Tue, 14 Jan 2025 23:15:07 +0000 (00:15 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 16 Jan 2025 13:01:09 +0000 (14:01 +0100)
commitdcf6230555dcd0b05e8d2dd5b128dcc4b6fc04ef
treec9818b64ae0d52735e57b0565fd2cce079fa8d17
parent3ec955713d9617059d2fc8f2816d0b95ace72256
timers/migration: Simplify top level detection on group setup

Having a single group on a given level is enough to know this is the
top level, because a root has to have at least two children, unless that
root is the only group and the children are actual CPUs.

Simplify the test in tmigr_setup_groups() accordingly.

Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250114231507.21672-5-frederic@kernel.org
kernel/time/timer_migration.c