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.
Please note that this series depend on the previously submitted series: [PATCH v2 0/4] x86/CPU: Update AMD Last-Level-Cache Information (https://lkml.org/lkml/2018/4/27/1112) Thanks, Suravee Changes from v2 (https://lkml.org/lkml/2018/4/4/55) * 2/2: Fix typo in comment. 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 | 11 ++++++++++- arch/x86/kernel/cpu/topology.c | 8 ++++---- 3 files changed, 15 insertions(+), 6 deletions(-) -- 2.7.4