aboutsummaryrefslogtreecommitdiff
path: root/sys/arm64/arm64/mp_machdep.c
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2020-05-14 16:07:27 +0000
committerMark Johnston <markj@FreeBSD.org>2020-05-14 16:07:27 +0000
commite76aab6ae262ab21d72d941aef61a7b471fb6852 (patch)
treeb20200917e3c6b671dc50fdd85b3b172717e0c9e /sys/arm64/arm64/mp_machdep.c
parentdc2b320563113cc75e3e7c1d99ac8529f9e8a602 (diff)
downloadsrc-e76aab6ae262ab21d72d941aef61a7b471fb6852.tar.gz
src-e76aab6ae262ab21d72d941aef61a7b471fb6852.zip
Call acpi_pxm_set_proximity_info() slightly earlier on x86.
This function is responsible for setting pc_domain in each pcpu structure. Call it from the main function that starts APs, rather than a separate SYSINIT. This makes it easier to close the window where UMA's per-CPU slab allocator may be called while pc_domain is uninitialized. In particular, the allocator uses pc_domain to allocate domain-local pages, so allocations before this point end up using domain 0 for everything. Reviewed by: kib MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D24757
Notes
Notes: svn path=/head/; revision=361033
Diffstat (limited to 'sys/arm64/arm64/mp_machdep.c')
-rw-r--r--sys/arm64/arm64/mp_machdep.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/arm64/arm64/mp_machdep.c b/sys/arm64/arm64/mp_machdep.c
index a9250e3e2cd7..e3b8e350dce4 100644
--- a/sys/arm64/arm64/mp_machdep.c
+++ b/sys/arm64/arm64/mp_machdep.c
@@ -535,9 +535,7 @@ cpu_init_acpi(void)
acpi_unmap_table(madt);
#if MAXMEMDOM > 1
- /* set proximity info */
acpi_pxm_set_cpu_locality();
- acpi_pxm_free();
#endif
}
#endif