]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Call acpi_pxm_set_proximity_info() slightly earlier on x86.
authorMark Johnston <markj@FreeBSD.org>
Thu, 14 May 2020 16:07:27 +0000 (16:07 +0000)
committerMark Johnston <markj@FreeBSD.org>
Thu, 14 May 2020 16:07:27 +0000 (16:07 +0000)
commite76aab6ae262ab21d72d941aef61a7b471fb6852
treeb20200917e3c6b671dc50fdd85b3b172717e0c9e
parentdc2b320563113cc75e3e7c1d99ac8529f9e8a602
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
sys/amd64/amd64/mp_machdep.c
sys/arm64/arm64/mp_machdep.c
sys/dev/acpica/acpi_pxm.c
sys/dev/acpica/acpivar.h
sys/i386/i386/mp_machdep.c
sys/x86/acpica/srat.c