diff options
author | marcel <marcel@FreeBSD.org> | 2014-07-02 21:53:34 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2014-07-02 21:53:34 +0000 |
commit | ccea0f0fb772834530f8d27cdd6044a2d1f3c0b2 (patch) | |
tree | c67bb2906b16633f7d2f05585a41f7b78f8dcda4 /sys/ia64 | |
parent | 4f317bd085c00f3ccec93cddff2014ece1b5da4d (diff) | |
download | FreeBSD-src-ccea0f0fb772834530f8d27cdd6044a2d1f3c0b2.zip FreeBSD-src-ccea0f0fb772834530f8d27cdd6044a2d1f3c0b2.tar.gz |
MFC 257475: Respect the kern.smp.disabled tunable.
Diffstat (limited to 'sys/ia64')
-rw-r--r-- | sys/ia64/ia64/mp_machdep.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/ia64/ia64/mp_machdep.c b/sys/ia64/ia64/mp_machdep.c index 4d41dbb..e0a082b 100644 --- a/sys/ia64/ia64/mp_machdep.c +++ b/sys/ia64/ia64/mp_machdep.c @@ -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++; |