summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-01-08 16:33:03 +0000
committerjhb <jhb@FreeBSD.org>2003-01-08 16:33:03 +0000
commitae34f5ca68917e1117f28452f0ae251572d15040 (patch)
tree7d195a6cbb5ca0948bc1228d55b82b2a68c8a7bb /sys/i386
parent8e6417022b92a6f3966e956a0c8ae3c74b19557c (diff)
downloadFreeBSD-src-ae34f5ca68917e1117f28452f0ae251572d15040.zip
FreeBSD-src-ae34f5ca68917e1117f28452f0ae251572d15040.tar.gz
Bah, get the test for more than one logical CPU right so we don't bogusly
claim a CPU has HT support when it lists 0 or 1 logical CPU's per physical processor.
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/identcpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/i386/identcpu.c b/sys/i386/i386/identcpu.c
index 040fb6f..97d30e2 100644
--- a/sys/i386/i386/identcpu.c
+++ b/sys/i386/i386/identcpu.c
@@ -610,7 +610,7 @@ printcpuinfo(void)
* the number of logical CPU's it contains.
*/
if (cpu_feature & CPUID_HTT &&
- (cpuid_cpuinfo & CPUID_HTT_CORES) > 0x100)
+ (cpuid_cpuinfo & CPUID_HTT_CORES) >> 16 > 1)
printf("\n Hyperthreading: %d logical CPUs",
(cpuid_cpuinfo & CPUID_HTT_CORES) >> 16);
}
OpenPOWER on IntegriCloud