acpi_pxm.c (0f8b212a1e41d6eabf2a17442bcbe4f128f023f8) | acpi_pxm.c (7ae99f80b6661760c5de3edd330b279f04b092a2) |
---|---|
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 --- 652 unchanged lines hidden (view full) --- 661 cpu = cpu_get_info(pc); 662 pc->pc_domain = vm_ndomains > 1 ? cpu->domain : 0; 663 CPU_SET(i, &cpuset_domain[pc->pc_domain]); 664 if (bootverbose) 665 printf("SRAT: CPU %u has memory domain %d\n", i, 666 pc->pc_domain); 667 } 668 /* XXXMJ the page is leaked. */ | 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 --- 652 unchanged lines hidden (view full) --- 661 cpu = cpu_get_info(pc); 662 pc->pc_domain = vm_ndomains > 1 ? cpu->domain : 0; 663 CPU_SET(i, &cpuset_domain[pc->pc_domain]); 664 if (bootverbose) 665 printf("SRAT: CPU %u has memory domain %d\n", i, 666 pc->pc_domain); 667 } 668 /* XXXMJ the page is leaked. */ |
669 pmap_unmapbios((vm_offset_t)cpus, sizeof(*cpus) * max_cpus); | 669 pmap_unmapbios(cpus, sizeof(*cpus) * max_cpus); |
670 srat_physaddr = 0; 671 cpus = NULL; 672} 673 674int 675acpi_pxm_get_cpu_locality(int apic_id) 676{ 677 struct cpu_info *cpu; --- 35 unchanged lines hidden --- | 670 srat_physaddr = 0; 671 cpus = NULL; 672} 673 674int 675acpi_pxm_get_cpu_locality(int apic_id) 676{ 677 struct cpu_info *cpu; --- 35 unchanged lines hidden --- |