diff options
| author | Marcel Moolenaar <marcel@FreeBSD.org> | 2013-10-31 22:46:03 +0000 |
|---|---|---|
| committer | Marcel Moolenaar <marcel@FreeBSD.org> | 2013-10-31 22:46:03 +0000 |
| commit | ec9b648ef8ec6ccb2d2a452f273635351e0ef08f (patch) | |
| tree | 87b6ff79baabb73ee01700ef3d6d709ecb99a6bf | |
| parent | 12e7de228a9b59c7a44619fb802d48d219e60e25 (diff) | |
Notes
| -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 8e71b35e00aa4..a29b3995d510e 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); @@ -294,6 +296,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++; |
