From 42fb42a3998fbfb8a1c68c4a3666703f82169a70 Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Mon, 17 Oct 2005 15:51:28 +0000 Subject: [PATCH] Split displaying number of physical and logical cores. --- sys/amd64/amd64/identcpu.c | 5 +++-- 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 30cb2194ffdb..a625f986681e 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 72cda2868547..db01b1a8373e 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);