diff options
author | Roger Pau Monné <royger@FreeBSD.org> | 2017-08-10 09:15:18 +0000 |
---|---|---|
committer | Roger Pau Monné <royger@FreeBSD.org> | 2017-08-10 09:15:18 +0000 |
commit | fd1f83fb450a45bccca7f215486018191cbab51f (patch) | |
tree | fe9466e39fdf9130b019b935ded031e337882756 /sys/x86/acpica/srat.c | |
parent | 5c5ca36ca2d40a09e089413731131f430eb39e0e (diff) | |
download | src-fd1f83fb450a45bccca7f215486018191cbab51f.tar.gz src-fd1f83fb450a45bccca7f215486018191cbab51f.zip |
apic_enumerator: only set mp_ncpus and mp_maxid at probe cpus phase
Populate the lapics arrays and call cpu_add/lapic_create in the setup
phase instead. Also store the max APIC ID found in the newly
introduced max_apic_id global variable.
This is a requirement in order to make the static arrays currently
using MAX_LAPIC_ID dynamic.
Sponsored by: Citrix Systems R&D
MFC after: 1 month
Reviewed by: kib
Differential revision: https://reviews.freebsd.org/D11911
Notes
Notes:
svn path=/head/; revision=322347
Diffstat (limited to 'sys/x86/acpica/srat.c')
-rw-r--r-- | sys/x86/acpica/srat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/x86/acpica/srat.c b/sys/x86/acpica/srat.c index 9af9643594e4..c1e674726ee4 100644 --- a/sys/x86/acpica/srat.c +++ b/sys/x86/acpica/srat.c @@ -49,6 +49,7 @@ __FBSDID("$FreeBSD$"); #include <contrib/dev/acpica/include/actables.h> #include <machine/intr_machdep.h> +#include <machine/md_var.h> #include <x86/apicvar.h> #include <dev/acpica/acpivar.h> |