svn commit: r334616 - head/sys/dev/acpica
Mark Johnston
markj at FreeBSD.org
Mon Jun 4 14:56:03 UTC 2018
Author: markj
Date: Mon Jun 4 14:56:02 2018
New Revision: 334616
URL: https://svnweb.freebsd.org/changeset/base/334616
Log:
Fix the NUMA build for non-x86 platforms.
acpi_map_pxm_to_vm_domainid() is currently implemented only on x86.
MFC after: 1 week
Modified:
head/sys/dev/acpica/acpi.c
Modified: head/sys/dev/acpica/acpi.c
==============================================================================
--- head/sys/dev/acpica/acpi.c Mon Jun 4 14:42:13 2018 (r334615)
+++ head/sys/dev/acpica/acpi.c Mon Jun 4 14:56:02 2018 (r334616)
@@ -1090,6 +1090,7 @@ static int
acpi_parse_pxm(device_t dev)
{
#ifdef NUMA
+#if defined(__i386__) || defined(__amd64__)
ACPI_HANDLE handle;
ACPI_STATUS status;
int pxm;
@@ -1102,6 +1103,7 @@ acpi_parse_pxm(device_t dev)
return (acpi_map_pxm_to_vm_domainid(pxm));
if (status == AE_NOT_FOUND)
return (-2);
+#endif
#endif
return (-1);
}
More information about the svn-src-all
mailing list