x86/cpu/amd: Move TOPOEXT enablement into the topology parser
authorThomas Gleixner <tglx@linutronix.de>
Thu, 11 Apr 2024 16:55:38 +0000 (18:55 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 12 Apr 2024 10:05:54 +0000 (12:05 +0200)
commit7211274fe0ee352332255e41ab5e628b86e83994
treeb7d0c7c50e5f2fc8c791e8965b707db61421d3ef
parentc064b536a8f9ab7c8e204da8f5a22f7420d0b56c
x86/cpu/amd: Move TOPOEXT enablement into the topology parser

The topology rework missed that early_init_amd() tries to re-enable the
Topology Extensions when the BIOS disabled them.

The new parser is invoked before early_init_amd() so the re-enable attempt
happens too late.

Move it into the AMD specific topology parser code where it belongs.

Fixes: f7fb3b2dd92c ("x86/cpu: Provide an AMD/HYGON specific topology parser")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/878r1j260l.ffs@tglx
arch/x86/kernel/cpu/amd.c
arch/x86/kernel/cpu/topology_amd.c