2006-03-21 Gwenole Beauchesne <gbeauchesne@mandriva.com> * AMD/identify (display_AMD_info): Add multicore detection. TODO: characterize core id, but likely valid only with cpuid driver. --- x86info-1.17/AMD/identify.c.amd-multicore 2005-11-05 01:05:52.000000000 +0100 +++ x86info-1.17/AMD/identify.c 2006-03-21 23:16:10.000000000 +0100 @@ -631,5 +631,17 @@ void display_AMD_info(struct cpudata *cp if (show_bugs) show_amd_bugs(cpu); + + /* AMD Multicore characterisation */ + if (cpu->maxei >= 0x80000008) { + int nr_cores; + unsigned long ecx; + + cpuid (cpu->number, 0x80000008, NULL, NULL, &ecx, NULL); + nr_cores = 1 + (ecx & 0xff); + + if (nr_cores > 1) + printf ("The physical package has %d cores\n", nr_cores); + } }