acpica: rename acpi_parse_pxm() to acpi_pxm_parse() and make it non-static

Reviewed by:	jhb
Sponsored by:	Advanced Micro Devices (AMD)
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D47291
This commit is contained in:
Konstantin Belousov 2024-10-30 17:54:16 +02:00
parent aabd759cf7
commit 6f423295f1
2 changed files with 5 additions and 4 deletions

View file

@ -1246,8 +1246,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__)
@ -1274,7 +1274,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));
@ -1310,7 +1310,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);

View file

@ -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.