diff options
Diffstat (limited to 'arch/x86/mm/numa_32.c')
-rw-r--r-- | arch/x86/mm/numa_32.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/x86/mm/numa_32.c b/arch/x86/mm/numa_32.c index 8641239a066..14135e52cef 100644 --- a/arch/x86/mm/numa_32.c +++ b/arch/x86/mm/numa_32.c | |||
@@ -332,6 +332,29 @@ static __init void init_alloc_remap(int nid) | |||
332 | nid, node_pa, node_pa + size, remap_va, remap_va + size); | 332 | nid, node_pa, node_pa + size, remap_va, remap_va + size); |
333 | } | 333 | } |
334 | 334 | ||
335 | static int get_memcfg_numaq(void) | ||
336 | { | ||
337 | #ifdef CONFIG_X86_NUMAQ | ||
338 | int nid; | ||
339 | |||
340 | if (numa_off) | ||
341 | return 0; | ||
342 | |||
343 | if (numaq_numa_init() < 0) { | ||
344 | nodes_clear(numa_nodes_parsed); | ||
345 | remove_all_active_ranges(); | ||
346 | return 0; | ||
347 | } | ||
348 | |||
349 | for_each_node_mask(nid, numa_nodes_parsed) | ||
350 | node_set_online(nid); | ||
351 | sort_node_map(); | ||
352 | return 1; | ||
353 | #else | ||
354 | return 0; | ||
355 | #endif | ||
356 | } | ||
357 | |||
335 | static int get_memcfg_from_srat(void) | 358 | static int get_memcfg_from_srat(void) |
336 | { | 359 | { |
337 | #ifdef CONFIG_ACPI_NUMA | 360 | #ifdef CONFIG_ACPI_NUMA |