diff options
author | jkim <jkim@FreeBSD.org> | 2005-10-17 15:51:28 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2005-10-17 15:51:28 +0000 |
commit | d5f4317ec64ec55bfd40290d261405592303b808 (patch) | |
tree | ad4d74ad46dcfce2dbeab1add691de1eed6a0348 /sys | |
parent | 74d3ddeb3259da19ebc6183d77ed2e47ac50eae1 (diff) | |
download | FreeBSD-src-d5f4317ec64ec55bfd40290d261405592303b808.zip FreeBSD-src-d5f4317ec64ec55bfd40290d261405592303b808.tar.gz |
Split displaying number of physical and logical cores.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/amd64/identcpu.c | 5 | ||||
-rw-r--r-- | sys/i386/i386/identcpu.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/amd64/amd64/identcpu.c b/sys/amd64/amd64/identcpu.c index 30cb219..a625f98 100644 --- a/sys/amd64/amd64/identcpu.c +++ b/sys/amd64/amd64/identcpu.c @@ -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. */ diff --git a/sys/i386/i386/identcpu.c b/sys/i386/i386/identcpu.c index 72cda28..db01b1a 100644 --- a/sys/i386/i386/identcpu.c +++ b/sys/i386/i386/identcpu.c @@ -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); |