]> git.ipfire.org Git - thirdparty/linux.git/commit
x86/smpboot: moves x86_topology to static initialize and truncate
authorLi Chen <chenl311@chinatelecom.cn>
Thu, 10 Jul 2025 10:57:09 +0000 (18:57 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 14 Jul 2025 08:59:34 +0000 (10:59 +0200)
commitfbc2010d92e595dc13d8048db2419f963c8cb25e
tree22d389d6cfd6193dc6281d4d30b1b0461512da69
parent992de2b02509bed68f693ea5a68b07cd586197b7
x86/smpboot: moves x86_topology to static initialize and truncate

The #ifdeffery and the initializers in build_sched_topology() are just
disgusting.

Statically initialize the domain levels in the topology array and let
build_sched_topology() invalidate the package domain level when NUMA in
package is available.

Suggested-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Li Chen <chenl311@chinatelecom.cn>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: K Prateek Nayak <kprateek.nayak@amd.com>
Tested-by: K Prateek Nayak <kprateek.nayak@amd.com>
Link: https://lore.kernel.org/r/20250710105715.66594-4-me@linux.beauty
arch/x86/kernel/smpboot.c