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.
This commit is contained in:
John Baldwin 2003-01-08 16:33:03 +00:00
parent 7d13e76928
commit b33c8e3ded
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);
}