aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/srat_64.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/mm/srat_64.c')
-rw-r--r--arch/x86/mm/srat_64.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/arch/x86/mm/srat_64.c b/arch/x86/mm/srat_64.c
index d56eff811cd8..51d07338d2e4 100644
--- a/arch/x86/mm/srat_64.c
+++ b/arch/x86/mm/srat_64.c
@@ -277,24 +277,6 @@ static int fake_node_to_pxm_map[MAX_NUMNODES] __initdata = {
277static s16 fake_apicid_to_node[MAX_LOCAL_APIC] __initdata = { 277static s16 fake_apicid_to_node[MAX_LOCAL_APIC] __initdata = {
278 [0 ... MAX_LOCAL_APIC-1] = NUMA_NO_NODE 278 [0 ... MAX_LOCAL_APIC-1] = NUMA_NO_NODE
279}; 279};
280static int __init find_node_by_addr(unsigned long addr)
281{
282 int ret = NUMA_NO_NODE;
283 int i;
284
285 for_each_node_mask(i, mem_nodes_parsed) {
286 /*
287 * Find the real node that this emulated node appears on. For
288 * the sake of simplicity, we only use a real node's starting
289 * address to determine which emulated node it appears on.
290 */
291 if (addr >= numa_nodes[i].start && addr < numa_nodes[i].end) {
292 ret = i;
293 break;
294 }
295 }
296 return ret;
297}
298 280
299/* 281/*
300 * In NUMA emulation, we need to setup proximity domain (_PXM) to node ID 282 * In NUMA emulation, we need to setup proximity domain (_PXM) to node ID