git: ebe9a47c0065 - stable/14 - acpica: rename acpi_parse_pxm() to acpi_pxm_parse() and make it non-static

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Tue, 03 Dec 2024 00:51:18 UTC
The branch stable/14 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=ebe9a47c00658e80fe54f4ff8d1b6c51c0e6b081

commit ebe9a47c00658e80fe54f4ff8d1b6c51c0e6b081
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-10-30 15:54:16 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-12-03 00:39:22 +0000

    acpica: rename acpi_parse_pxm() to acpi_pxm_parse() and make it non-static
    
    (cherry picked from commit 6f423295f18a3f53a31453d61dbbd5271d7bd099)
---
 sys/dev/acpica/acpi.c    | 8 ++++----
 sys/dev/acpica/acpivar.h | 1 +
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
index c2bfe5f2fa5d..45b6146b6308 100644
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -1236,8 +1236,8 @@ acpi_hint_device_unit(device_t acdev, device_t child, const char *name,
  * _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__)
@@ -1264,7 +1264,7 @@ acpi_get_cpus(device_t dev, device_t child, enum cpu_sets op, size_t setsize,
 {
 	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));
 
@@ -1300,7 +1300,7 @@ acpi_get_domain(device_t dev, device_t child, int *domain)
 {
 	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
index eb6022cde159..a8bd9ec33cb7 100644
--- a/sys/dev/acpica/acpivar.h
+++ b/sys/dev/acpica/acpivar.h
@@ -585,6 +585,7 @@ void		acpi_pxm_parse_tables(void);
 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.