MFC 257475: Respect the kern.smp.disabled tunable.
This commit is contained in:
parent
4f317bd085
commit
ccea0f0fb7
@ -65,6 +65,8 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
extern uint64_t bdata[];
|
||||
|
||||
extern int smp_disabled;
|
||||
|
||||
MALLOC_DEFINE(M_SMP, "SMP", "SMP related allocations");
|
||||
|
||||
void ia64_ap_startup(void);
|
||||
@ -292,6 +294,9 @@ cpu_mp_add(u_int acpi_id, u_int id, u_int eid)
|
||||
void *dpcpu;
|
||||
u_int cpuid, sapic_id;
|
||||
|
||||
if (smp_disabled)
|
||||
return;
|
||||
|
||||
sapic_id = SAPIC_ID_SET(id, eid);
|
||||
cpuid = (IA64_LID_GET_SAPIC_ID(ia64_get_lid()) == sapic_id)
|
||||
? 0 : smp_cpus++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user