Linux currently provides function detect_extended_topology() for parsing CPUID Fn0xB and derive CPU topology information. Therefore, also call this function in AMD code path.
Thanks, Suravee Suravee Suthikulpanit (2): x86/CPU: Modify detect_extended_topology() to return result x86/CPU/AMD: Derive CPU topology from CPUID Fn0xB when available arch/x86/include/asm/processor.h | 2 +- arch/x86/kernel/cpu/amd.c | 16 ++++++++++++---- arch/x86/kernel/cpu/topology.c | 8 ++++---- 3 files changed, 17 insertions(+), 9 deletions(-) -- 2.7.4