acpi_numa.c (4f2c0a4acffbec01079c28f839422e64ddeff004) | acpi_numa.c (8d34b6f17b9ac93faa2791eb037dcb08bdf755de) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * ACPI 5.1 based NUMA setup for ARM64 4 * Lots of code was borrowed from arch/x86/mm/srat.c 5 * 6 * Copyright 2004 Andi Kleen, SuSE Labs. 7 * Copyright (C) 2013-2016, Linaro Ltd. 8 * Author: Hanjun Guo <hanjun.guo@linaro.org> --- 20 unchanged lines hidden (view full) --- 29 30static int acpi_early_node_map[NR_CPUS] __initdata = { NUMA_NO_NODE }; 31 32int __init acpi_numa_get_nid(unsigned int cpu) 33{ 34 return acpi_early_node_map[cpu]; 35} 36 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * ACPI 5.1 based NUMA setup for ARM64 4 * Lots of code was borrowed from arch/x86/mm/srat.c 5 * 6 * Copyright 2004 Andi Kleen, SuSE Labs. 7 * Copyright (C) 2013-2016, Linaro Ltd. 8 * Author: Hanjun Guo <hanjun.guo@linaro.org> --- 20 unchanged lines hidden (view full) --- 29 30static int acpi_early_node_map[NR_CPUS] __initdata = { NUMA_NO_NODE }; 31 32int __init acpi_numa_get_nid(unsigned int cpu) 33{ 34 return acpi_early_node_map[cpu]; 35} 36 |
37static inline int get_cpu_for_acpi_id(u32 uid) 38{ 39 int cpu; 40 41 for (cpu = 0; cpu < nr_cpu_ids; cpu++) 42 if (uid == get_acpi_id_for_cpu(cpu)) 43 return cpu; 44 45 return -EINVAL; 46} 47 | |
48static int __init acpi_parse_gicc_pxm(union acpi_subtable_headers *header, 49 const unsigned long end) 50{ 51 struct acpi_srat_gicc_affinity *pa; 52 int cpu, pxm, node; 53 54 if (srat_disabled()) 55 return -EINVAL; --- 65 unchanged lines hidden --- | 37static int __init acpi_parse_gicc_pxm(union acpi_subtable_headers *header, 38 const unsigned long end) 39{ 40 struct acpi_srat_gicc_affinity *pa; 41 int cpu, pxm, node; 42 43 if (srat_disabled()) 44 return -EINVAL; --- 65 unchanged lines hidden --- |