aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2003-01-08 01:23:16 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2003-01-08 01:23:16 +0000
commit5460753d55c15c20e1b8fb19895ba802cd4ba373 (patch)
treec34d3114b7f3f8befe7b024b64358c323634cb2c /sys/amd64
parentfa896b728071bc4b761859d3738cf1cdefced47a (diff)
Notes
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/identcpu.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/amd64/amd64/identcpu.c b/sys/amd64/amd64/identcpu.c
index 59ed809018704..040fb6fc7138a 100644
--- a/sys/amd64/amd64/identcpu.c
+++ b/sys/amd64/amd64/identcpu.c
@@ -604,6 +604,15 @@ printcpuinfo(void)
"\037IA64" /* CPU can execute IA64 instructions */
"\040PBE" /* Pending Break Enable */
);
+
+ /*
+ * If this CPU supports hyperthreading then mention
+ * the number of logical CPU's it contains.
+ */
+ if (cpu_feature & CPUID_HTT &&
+ (cpuid_cpuinfo & CPUID_HTT_CORES) > 0x100)
+ printf("\n Hyperthreading: %d logical CPUs",
+ (cpuid_cpuinfo & CPUID_HTT_CORES) >> 16);
}
if (strcmp(cpu_vendor, "AuthenticAMD") == 0 &&
nreg >= 0x80000001)