Fix the !SMP x86 build.

Reported by:	Michael Butler <imb@protected-networks.net>
X-MFC with:	r337715
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mark Johnston 2018-08-14 13:56:42 +00:00
parent 29989b4558
commit 3571aee662
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=337751

View File

@ -255,11 +255,15 @@ SYSINIT(ucode_release, SI_SUB_KMEM + 1, SI_ORDER_ANY, ucode_release, NULL);
void
ucode_load_ap(int cpu)
{
#ifdef SMP
KASSERT(cpu_info[cpu_apic_ids[cpu]].cpu_present,
("cpu %d not present", cpu));
if (ucode_data != NULL && !cpu_info[cpu_apic_ids[cpu]].cpu_hyperthread)
if (!cpu_info[cpu_apic_ids[cpu]].cpu_hyperthread)
return;
#endif
if (ucode_data != NULL)
(void)ucode_intel_load(ucode_data, false);
}