[SIGAR-71] option for cpu_list to report cores rather than sockets

This commit is contained in:
Doug MacEachern committed 2007-11-06 06:55:55 +00:00
1 parent 9955d435de
commit ac8f9541cd
5 files changed
+14 -7

No files matched your search

+6
View File
@@ -248,6 +248,12 @@ static int is_ht_enabled(sigar_t *sigar)
sigar->ht_enabled = 0;
sigar->lcpu = 0;
if (sigar->cpu_list_cores) {
sigar_log_printf(sigar, SIGAR_LOG_DEBUG,
"[cpu] skipping HT check");
return 0;
}
sigar_cpuid(0, &eax, &ebx, &ecx, &edx);
if ((ebx == INTEL_ID) || (ebx == AMD_ID)) {