aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2020-05-22 01:18:55 +0000
committerMark Johnston <markj@FreeBSD.org>2020-05-22 01:18:55 +0000
commite115748932b67183ea715fbceb54d96b39e06c54 (patch)
tree8b699610f51065c4dde6aed9b9bd48b5dcfe2a24 /sys/amd64
parentd0ca9a7fe4450aaa19ad281a9cef37f413bd9e5c (diff)
downloadsrc-e115748932b67183ea715fbceb54d96b39e06c54.tar.gz
src-e115748932b67183ea715fbceb54d96b39e06c54.zip
Fix the build after r361033 when ACPI is disabled.
Reported by: Herbert J. Skuhra <herbert@gojira.at>
Notes
Notes: svn path=/head/; revision=361352
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/mp_machdep.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/amd64/amd64/mp_machdep.c b/sys/amd64/amd64/mp_machdep.c
index 2700faf4306c..7085a9b1c540 100644
--- a/sys/amd64/amd64/mp_machdep.c
+++ b/sys/amd64/amd64/mp_machdep.c
@@ -29,6 +29,7 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include "opt_acpi.h"
#include "opt_cpu.h"
#include "opt_ddb.h"
#include "opt_kstack_pages.h"
@@ -78,8 +79,10 @@ __FBSDID("$FreeBSD$");
#include <machine/cpu.h>
#include <x86/init.h>
+#ifdef DEV_ACPI
#include <contrib/dev/acpica/include/acpi.h>
#include <dev/acpica/acpivar.h>
+#endif
#define WARMBOOT_TARGET 0
#define WARMBOOT_OFF (KERNBASE + 0x0467)
@@ -265,7 +268,9 @@ cpu_mp_start(void)
set_interrupt_apic_ids();
+#if defined(DEV_ACPI) && MAXMEMDOM > 1
acpi_pxm_set_cpu_locality();
+#endif
}
/*