diff options
| author | Gleb Smirnoff <glebius@FreeBSD.org> | 2026-08-11 14:40:46 +0000 |
|---|---|---|
| committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2026-08-11 14:40:46 +0000 |
| commit | 87b21f30d3fe114de3a110c277d516927ec7756d (patch) | |
| tree | 09f371b4bc295ea9a27f5ebdca78d98e520bc574 | |
| parent | 4f2465260f035fa0095e73b34a74851ef2efaa83 (diff) | |
SYSINIT: add SI_SUB_NUMA
This allows to parse ACPI tables and initialize VM domains before
SI_SUB_VM w/o a hack.
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D58713
| -rw-r--r-- | sys/sys/kernel.h | 1 | ||||
| -rw-r--r-- | sys/x86/acpica/srat.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/kernel.h b/sys/sys/kernel.h index 2e1b1bd537cd..01673ac3395e 100644 --- a/sys/sys/kernel.h +++ b/sys/sys/kernel.h @@ -97,6 +97,7 @@ enum sysinit_sub_id { SI_SUB_FIRST = 0x0600000, /* mp_maxid, etc... */ SI_SUB_TUNABLES = 0x0700000, /* establish tunable values */ SI_SUB_COPYRIGHT = 0x0800001, /* first use of console */ + SI_SUB_NUMA = 0x0810000, /* initialize NUMA topology */ SI_SUB_VM = 0x1000000, /* virtual memory system init */ SI_SUB_COUNTER = 0x1100000, /* counter(9) is initialized */ SI_SUB_KMEM = 0x1800000, /* kernel memory */ diff --git a/sys/x86/acpica/srat.c b/sys/x86/acpica/srat.c index ad112dc3e741..a0fb7fd996dc 100644 --- a/sys/x86/acpica/srat.c +++ b/sys/x86/acpica/srat.c @@ -51,7 +51,7 @@ parse_acpi_tables(void *dummy) acpi_pxm_parse_tables(); acpi_pxm_set_mem_locality(); } -SYSINIT(parse_acpi_tables, SI_SUB_VM - 1, SI_ORDER_FIRST, parse_acpi_tables, +SYSINIT(parse_acpi_tables, SI_SUB_NUMA, SI_ORDER_FIRST, parse_acpi_tables, NULL); #endif /* MAXMEMDOM > 1 */ |
