Split displaying number of physical and logical cores.

This commit is contained in:
Jung-uk Kim 2005-10-17 15:51:28 +00:00
parent a21cbcb876
commit 42fb42a399
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=151418
2 changed files with 6 additions and 4 deletions

View file

@ -357,9 +357,10 @@ printcpuinfo(void)
cpuid_count(4, 0, regs);
cmp = ((regs[0] & 0xfc000000) >> 26) + 1;
}
if (cmp > 1)
printf("\n Physical cores: %d", cmp);
if (htt > 1)
printf("\n Physical/Logical cores: %d/%d",
cmp, htt);
printf("\n Logical cores: %d", htt);
}
}
/* Avoid ugly blank lines: only print newline when we have to. */

View file

@ -847,9 +847,10 @@ printcpuinfo(void)
cpuid_count(4, 0, regs);
cmp = ((regs[0] & 0xfc000000) >> 26) + 1;
}
if (cmp > 1)
printf("\n Physical cores: %d", cmp);
if (htt > 1)
printf("\n Physical/Logical cores: %d/%d",
cmp, htt);
printf("\n Logical cores: %d", htt);
}
} else if (strcmp(cpu_vendor, "CyrixInstead") == 0) {
printf(" DIR=0x%04x", cyrix_did);