aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mm
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2011-02-16 11:11:09 -0500
committerTejun Heo <tj@kernel.org>2011-02-16 11:11:09 -0500
commit92d4a4371eeb89e1e12b9ebbed0956f499b6c2c0 (patch)
tree11ee70801eeeac07fefe97d42c108036833b5ec0 /arch/x86/mm
parent91556237ec872e1029e3036174bae3b1a8df65eb (diff)
x86-64, NUMA: Rename cpu_nodes_parsed to numa_nodes_parsed
It's no longer necessary to keep both cpu_nodes_parsed and mem_nodes_parsed. In preparation for merge, rename cpu_nodes_parsed to numa_nodes_parsed. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Yinghai Lu <yinghai@kernel.org> Cc: Brian Gerst <brgerst@gmail.com> Cc: Cyrill Gorcunov <gorcunov@gmail.com> Cc: Shaohui Zheng <shaohui.zheng@intel.com> Cc: David Rientjes <rientjes@google.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/mm')
-rw-r--r--arch/x86/mm/amdtopology_64.c4
-rw-r--r--arch/x86/mm/numa_64.c8
-rw-r--r--arch/x86/mm/srat_64.c6
3 files changed, 9 insertions, 9 deletions
diff --git a/arch/x86/mm/amdtopology_64.c b/arch/x86/mm/amdtopology_64.c
index 0cb59e582007..e76bffabc09d 100644
--- a/arch/x86/mm/amdtopology_64.c
+++ b/arch/x86/mm/amdtopology_64.c
@@ -168,7 +168,7 @@ int __init amd_numa_init(void)
168 prevbase = base; 168 prevbase = base;
169 numa_add_memblk(nodeid, base, limit); 169 numa_add_memblk(nodeid, base, limit);
170 node_set(nodeid, mem_nodes_parsed); 170 node_set(nodeid, mem_nodes_parsed);
171 node_set(nodeid, cpu_nodes_parsed); 171 node_set(nodeid, numa_nodes_parsed);
172 } 172 }
173 173
174 if (!nodes_weight(mem_nodes_parsed)) 174 if (!nodes_weight(mem_nodes_parsed))
@@ -189,7 +189,7 @@ int __init amd_numa_init(void)
189 apicid_base = boot_cpu_physical_apicid; 189 apicid_base = boot_cpu_physical_apicid;
190 } 190 }
191 191
192 for_each_node_mask(i, cpu_nodes_parsed) 192 for_each_node_mask(i, numa_nodes_parsed)
193 for (j = apicid_base; j < cores + apicid_base; j++) 193 for (j = apicid_base; j < cores + apicid_base; j++)
194 set_apicid_to_node((i << bits) + j, i); 194 set_apicid_to_node((i << bits) + j, i);
195 195
diff --git a/arch/x86/mm/numa_64.c b/arch/x86/mm/numa_64.c
index c490448d716a..6e4fbd777564 100644
--- a/arch/x86/mm/numa_64.c
+++ b/arch/x86/mm/numa_64.c
@@ -36,7 +36,7 @@ struct numa_meminfo {
36struct pglist_data *node_data[MAX_NUMNODES] __read_mostly; 36struct pglist_data *node_data[MAX_NUMNODES] __read_mostly;
37EXPORT_SYMBOL(node_data); 37EXPORT_SYMBOL(node_data);
38 38
39nodemask_t cpu_nodes_parsed __initdata; 39nodemask_t numa_nodes_parsed __initdata;
40nodemask_t mem_nodes_parsed __initdata; 40nodemask_t mem_nodes_parsed __initdata;
41 41
42struct memnode memnode; 42struct memnode memnode;
@@ -379,7 +379,7 @@ static int __init numa_register_memblks(struct numa_meminfo *mi)
379 int i, j, nid; 379 int i, j, nid;
380 380
381 /* Account for nodes with cpus and no memory */ 381 /* Account for nodes with cpus and no memory */
382 nodes_or(node_possible_map, mem_nodes_parsed, cpu_nodes_parsed); 382 nodes_or(node_possible_map, mem_nodes_parsed, numa_nodes_parsed);
383 if (WARN_ON(nodes_empty(node_possible_map))) 383 if (WARN_ON(nodes_empty(node_possible_map)))
384 return -EINVAL; 384 return -EINVAL;
385 385
@@ -823,7 +823,7 @@ static int dummy_numa_init(void)
823 printk(KERN_INFO "Faking a node at %016lx-%016lx\n", 823 printk(KERN_INFO "Faking a node at %016lx-%016lx\n",
824 0LU, max_pfn << PAGE_SHIFT); 824 0LU, max_pfn << PAGE_SHIFT);
825 825
826 node_set(0, cpu_nodes_parsed); 826 node_set(0, numa_nodes_parsed);
827 node_set(0, mem_nodes_parsed); 827 node_set(0, mem_nodes_parsed);
828 numa_add_memblk(0, 0, (u64)max_pfn << PAGE_SHIFT); 828 numa_add_memblk(0, 0, (u64)max_pfn << PAGE_SHIFT);
829 829
@@ -851,7 +851,7 @@ void __init initmem_init(void)
851 for (j = 0; j < MAX_LOCAL_APIC; j++) 851 for (j = 0; j < MAX_LOCAL_APIC; j++)
852 set_apicid_to_node(j, NUMA_NO_NODE); 852 set_apicid_to_node(j, NUMA_NO_NODE);
853 853
854 nodes_clear(cpu_nodes_parsed); 854 nodes_clear(numa_nodes_parsed);
855 nodes_clear(mem_nodes_parsed); 855 nodes_clear(mem_nodes_parsed);
856 nodes_clear(node_possible_map); 856 nodes_clear(node_possible_map);
857 nodes_clear(node_online_map); 857 nodes_clear(node_online_map);
diff --git a/arch/x86/mm/srat_64.c b/arch/x86/mm/srat_64.c
index e8b3b3cb2c2b..8185189d34a2 100644
--- a/arch/x86/mm/srat_64.c
+++ b/arch/x86/mm/srat_64.c
@@ -94,7 +94,7 @@ acpi_numa_x2apic_affinity_init(struct acpi_srat_x2apic_cpu_affinity *pa)
94 return; 94 return;
95 } 95 }
96 set_apicid_to_node(apic_id, node); 96 set_apicid_to_node(apic_id, node);
97 node_set(node, cpu_nodes_parsed); 97 node_set(node, numa_nodes_parsed);
98 acpi_numa = 1; 98 acpi_numa = 1;
99 printk(KERN_INFO "SRAT: PXM %u -> APIC 0x%04x -> Node %u\n", 99 printk(KERN_INFO "SRAT: PXM %u -> APIC 0x%04x -> Node %u\n",
100 pxm, apic_id, node); 100 pxm, apic_id, node);
@@ -134,7 +134,7 @@ acpi_numa_processor_affinity_init(struct acpi_srat_cpu_affinity *pa)
134 } 134 }
135 135
136 set_apicid_to_node(apic_id, node); 136 set_apicid_to_node(apic_id, node);
137 node_set(node, cpu_nodes_parsed); 137 node_set(node, numa_nodes_parsed);
138 acpi_numa = 1; 138 acpi_numa = 1;
139 printk(KERN_INFO "SRAT: PXM %u -> APIC 0x%02x -> Node %u\n", 139 printk(KERN_INFO "SRAT: PXM %u -> APIC 0x%02x -> Node %u\n",
140 pxm, apic_id, node); 140 pxm, apic_id, node);
@@ -196,7 +196,7 @@ update_nodes_add(int node, unsigned long start, unsigned long end)
196 } 196 }
197 197
198 if (changed) { 198 if (changed) {
199 node_set(node, cpu_nodes_parsed); 199 node_set(node, numa_nodes_parsed);
200 printk(KERN_INFO "SRAT: hot plug zone found %Lx - %Lx\n", 200 printk(KERN_INFO "SRAT: hot plug zone found %Lx - %Lx\n",
201 nd->start, nd->end); 201 nd->start, nd->end);
202 } 202 }