Fix an inverted test in ucode_load_ap().

This caused microcode to be updated only on the BSP if hyperthreading
was disabled, typically resulting in a hang or reset.

Approved by:	re (kib)
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mark Johnston 2018-10-03 14:20:43 +00:00
parent 580e30a33e
commit 7c179abac7

View File

@ -269,7 +269,7 @@ ucode_load_ap(int cpu)
KASSERT(cpu_info[cpu_apic_ids[cpu]].cpu_present,
("cpu %d not present", cpu));
if (!cpu_info[cpu_apic_ids[cpu]].cpu_hyperthread)
if (cpu_info[cpu_apic_ids[cpu]].cpu_hyperthread)
return;
#endif