diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -1246,8 +1246,8 @@ * _PXM to a NUMA domain. If the device does not have a _PXM method, * -2 is returned. If any other error occurs, -1 is returned. */ -static int -acpi_parse_pxm(device_t dev) +int +acpi_pxm_parse(device_t dev) { #ifdef NUMA #if defined(__i386__) || defined(__amd64__) || defined(__aarch64__) @@ -1274,7 +1274,7 @@ { int d, error; - d = acpi_parse_pxm(child); + d = acpi_pxm_parse(child); if (d < 0) return (bus_generic_get_cpus(dev, child, op, setsize, cpuset)); @@ -1310,7 +1310,7 @@ { int d; - d = acpi_parse_pxm(child); + d = acpi_pxm_parse(child); if (d >= 0) { *domain = d; return (0); diff --git a/sys/dev/acpica/acpivar.h b/sys/dev/acpica/acpivar.h --- a/sys/dev/acpica/acpivar.h +++ b/sys/dev/acpica/acpivar.h @@ -585,6 +585,7 @@ void acpi_pxm_set_mem_locality(void); void acpi_pxm_set_cpu_locality(void); int acpi_pxm_get_cpu_locality(int apic_id); +int acpi_pxm_parse(device_t dev); /* * Map a PXM to a VM domain.