srat.c (72bfb31a820d6ee9bae6dad27b3990b43077d552) srat.c (b6715dab8fff7e4869777a68db83c26c2bf841fd)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2010 Hudson River Trading LLC
5 * Written by: John H. Baldwin <jhb@FreeBSD.org>
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 139 unchanged lines hidden (view full) ---

148 * Make a pass over the table to populate the cpus[] and
149 * mem_info[] tables.
150 */
151 slit = acpi_map_table(slit_physaddr, ACPI_SIG_SLIT);
152 slit_parse_table(slit);
153 acpi_unmap_table(slit);
154 slit = NULL;
155
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2010 Hudson River Trading LLC
5 * Written by: John H. Baldwin <jhb@FreeBSD.org>
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 139 unchanged lines hidden (view full) ---

148 * Make a pass over the table to populate the cpus[] and
149 * mem_info[] tables.
150 */
151 slit = acpi_map_table(slit_physaddr, ACPI_SIG_SLIT);
152 slit_parse_table(slit);
153 acpi_unmap_table(slit);
154 slit = NULL;
155
156#ifdef VM_NUMA_ALLOC
156#ifdef NUMA
157 /* Tell the VM about it! */
158 mem_locality = vm_locality_table;
159#endif
160 return (0);
161}
162
163/*
164 * SRAT parsing.

--- 299 unchanged lines hidden (view full) ---

464 acpi_unmap_table(srat);
465 srat = NULL;
466 if (error || check_domains() != 0 || check_phys_avail() != 0 ||
467 renumber_domains() != 0) {
468 srat_physaddr = 0;
469 return (-1);
470 }
471
157 /* Tell the VM about it! */
158 mem_locality = vm_locality_table;
159#endif
160 return (0);
161}
162
163/*
164 * SRAT parsing.

--- 299 unchanged lines hidden (view full) ---

464 acpi_unmap_table(srat);
465 srat = NULL;
466 if (error || check_domains() != 0 || check_phys_avail() != 0 ||
467 renumber_domains() != 0) {
468 srat_physaddr = 0;
469 return (-1);
470 }
471
472#ifdef VM_NUMA_ALLOC
472#ifdef NUMA
473 /* Point vm_phys at our memory affinity table. */
474 vm_ndomains = ndomain;
475 mem_affinity = mem_info;
476#endif
477
478 return (0);
479}
480

--- 95 unchanged lines hidden ---
473 /* Point vm_phys at our memory affinity table. */
474 vm_ndomains = ndomain;
475 mem_affinity = mem_info;
476#endif
477
478 return (0);
479}
480

--- 95 unchanged lines hidden ---