diff options
author | jhb <jhb@FreeBSD.org> | 2003-01-08 16:33:03 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-01-08 16:33:03 +0000 |
commit | ae34f5ca68917e1117f28452f0ae251572d15040 (patch) | |
tree | 7d195a6cbb5ca0948bc1228d55b82b2a68c8a7bb /sys/amd64 | |
parent | 8e6417022b92a6f3966e956a0c8ae3c74b19557c (diff) | |
download | FreeBSD-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/amd64')
-rw-r--r-- | sys/amd64/amd64/identcpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/amd64/identcpu.c b/sys/amd64/amd64/identcpu.c index 040fb6f..97d30e2 100644 --- a/sys/amd64/amd64/identcpu.c +++ b/sys/amd64/amd64/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); } |