diff options
author | Andrew Turner <andrew@FreeBSD.org> | 2021-10-12 11:39:14 +0000 |
---|---|---|
committer | Andrew Turner <andrew@FreeBSD.org> | 2021-10-12 12:16:00 +0000 |
commit | 0906563718d35643789fc2b3c4cf1fc6884755e5 (patch) | |
tree | 050181bb14c526a0f74be2fa19d3a64defaf6e2e | |
parent | 08580603b5c438762a531aaadd435541ea14d2f2 (diff) | |
download | src-0906563718d35643789fc2b3c4cf1fc6884755e5.tar.gz src-0906563718d35643789fc2b3c4cf1fc6884755e5.zip |
Stop reading the arm64 domain when it's known
There is no need to read the domain on arm64 when there is only one
in the ACPI tables. This can also happen when the table is missing
as it is unneeded.
Reported by: dch
Sponsored by: The FreeBSD Foundation
-rw-r--r-- | sys/arm64/arm64/mp_machdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arm64/arm64/mp_machdep.c b/sys/arm64/arm64/mp_machdep.c index 82f47a6f9918..5f88900f4074 100644 --- a/sys/arm64/arm64/mp_machdep.c +++ b/sys/arm64/arm64/mp_machdep.c @@ -566,10 +566,10 @@ madt_handler(ACPI_SUBTABLE_HEADER *entry, void *arg) else id = *cpuid; -#ifdef NUMA - domain = acpi_pxm_get_cpu_locality(*cpuid); -#else domain = 0; +#ifdef NUMA + if (vm_ndomains > 1) + domain = acpi_pxm_get_cpu_locality(*cpuid); #endif if (start_cpu(id, intr->ArmMpidr, domain)) { MPASS(cpuid_to_pcpu[id] != NULL); |