diff options
Diffstat (limited to 'arch/x86/mm/amdtopology_64.c')
-rw-r--r-- | arch/x86/mm/amdtopology_64.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/arch/x86/mm/amdtopology_64.c b/arch/x86/mm/amdtopology_64.c index f37ea2fe85e6..0919c26820d4 100644 --- a/arch/x86/mm/amdtopology_64.c +++ b/arch/x86/mm/amdtopology_64.c | |||
@@ -194,41 +194,3 @@ int __init amd_numa_init(void) | |||
194 | 194 | ||
195 | return 0; | 195 | return 0; |
196 | } | 196 | } |
197 | |||
198 | #ifdef CONFIG_NUMA_EMU | ||
199 | /* | ||
200 | * For NUMA emulation, fake proximity domain (_PXM) to node id mappings must be | ||
201 | * setup to represent the physical topology but reflect the emulated | ||
202 | * environment. For each emulated node, the real node which it appears on is | ||
203 | * found and a fake pxm to nid mapping is created which mirrors the actual | ||
204 | * locality. node_distance() then represents the correct distances between | ||
205 | * emulated nodes by using the fake acpi mappings to pxms. | ||
206 | */ | ||
207 | void __init amd_fake_nodes(const struct bootnode *nodes, int nr_nodes) | ||
208 | { | ||
209 | unsigned int bits; | ||
210 | unsigned int cores; | ||
211 | unsigned int apicid_base = 0; | ||
212 | int i; | ||
213 | |||
214 | bits = boot_cpu_data.x86_coreid_bits; | ||
215 | cores = 1 << bits; | ||
216 | early_get_boot_cpu_id(); | ||
217 | if (boot_cpu_physical_apicid > 0) | ||
218 | apicid_base = boot_cpu_physical_apicid; | ||
219 | |||
220 | for (i = 0; i < nr_nodes; i++) { | ||
221 | int index; | ||
222 | int nid; | ||
223 | |||
224 | nid = find_node_by_addr(nodes[i].start); | ||
225 | if (nid == NUMA_NO_NODE) | ||
226 | continue; | ||
227 | |||
228 | index = nodeids[nid] << bits; | ||
229 | #ifdef CONFIG_ACPI_NUMA | ||
230 | __acpi_map_pxm_to_node(nid, i); | ||
231 | #endif | ||
232 | } | ||
233 | } | ||
234 | #endif /* CONFIG_NUMA_EMU */ | ||