aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2021-10-18 09:04:06 +0000
committerAndrew Turner <andrew@FreeBSD.org>2021-10-20 10:02:06 +0000
commit4fb002805e0dc0d08825bce65a0f4e533c53ec54 (patch)
tree79c3b1a02e265f38eae584bfdbbc7221862bd277
parent5fe97373486619373e3eeecb25582b5c937a26c5 (diff)
downloadsrc-4fb002805e0dc0d08825bce65a0f4e533c53ec54.tar.gz
src-4fb002805e0dc0d08825bce65a0f4e533c53ec54.zip
Pass the ACPI ID when reading the ACPI domain
The ACPI ID may not be the same as the FreeBSD CPU id. Use the former when finding the CPU domain as there is no requirement for it to be identical to the latter. Reported by: dch, kevans Reviewed by: kevans Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D32546
-rw-r--r--sys/arm64/arm64/mp_machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm64/arm64/mp_machdep.c b/sys/arm64/arm64/mp_machdep.c
index 5f88900f4074..15e05ef46262 100644
--- a/sys/arm64/arm64/mp_machdep.c
+++ b/sys/arm64/arm64/mp_machdep.c
@@ -569,7 +569,7 @@ madt_handler(ACPI_SUBTABLE_HEADER *entry, void *arg)
domain = 0;
#ifdef NUMA
if (vm_ndomains > 1)
- domain = acpi_pxm_get_cpu_locality(*cpuid);
+ domain = acpi_pxm_get_cpu_locality(intr->Uid);
#endif
if (start_cpu(id, intr->ArmMpidr, domain)) {
MPASS(cpuid_to_pcpu[id] != NULL);