When FreeBSD examines the CPU topology using CPUID leaf 11 in topo_probe_0xb(), 
it never sets hyperthreading_cpus.  At the end of topo_probe_0x4() it sets 
hyperthreading_cpus = cpu_logical.

Adding that assignment to line 316 of sys/amd64/amd64/mp_machdep.c seems to do 
the right thing on a system with two quad-core E5620 CPUs.  The APIC IDs that 
appear when SMT is enabled in the BIOS get marked AP/HT.

Do you agree?

Thanks,
  Andrew

--------------------------------------------------
Andrew Boyer    [email protected]




_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[email protected]"

Reply via email to