|
@@ -538,7 +538,11 @@ __cpuinit cpuid4_cache_lookup_regs(int index,
|
|
|
unsigned edx;
|
|
|
|
|
|
if (boot_cpu_data.x86_vendor == X86_VENDOR_AMD) {
|
|
|
- amd_cpuid4(index, &eax, &ebx, &ecx);
|
|
|
+ if (cpu_has_topoext)
|
|
|
+ cpuid_count(0x8000001d, index, &eax.full,
|
|
|
+ &ebx.full, &ecx.full, &edx);
|
|
|
+ else
|
|
|
+ amd_cpuid4(index, &eax, &ebx, &ecx);
|
|
|
amd_init_l3_cache(this_leaf, index);
|
|
|
} else {
|
|
|
cpuid_count(4, index, &eax.full, &ebx.full, &ecx.full, &edx);
|