aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/include/asm/page_types.h2
-rw-r--r--arch/x86/kernel/setup.c16
-rw-r--r--arch/x86/mm/init_32.c2
-rw-r--r--arch/x86/mm/init_64.c2
-rw-r--r--arch/x86/mm/numa_32.c2
-rw-r--r--arch/x86/mm/numa_64.c16
6 files changed, 20 insertions, 20 deletions
diff --git a/arch/x86/include/asm/page_types.h b/arch/x86/include/asm/page_types.h
index eb9ed00355a8..97e6007e4edd 100644
--- a/arch/x86/include/asm/page_types.h
+++ b/arch/x86/include/asm/page_types.h
@@ -56,7 +56,7 @@ extern unsigned long init_memory_mapping(unsigned long start,
56 56
57void init_memory_mapping_high(void); 57void init_memory_mapping_high(void);
58 58
59extern void initmem_init(int acpi, int k8); 59extern void initmem_init(void);
60extern void free_initmem(void); 60extern void free_initmem(void);
61 61
62#endif /* !__ASSEMBLY__ */ 62#endif /* !__ASSEMBLY__ */
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index c9a139c3056b..46e684f85b36 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -719,8 +719,6 @@ early_param("reservelow", parse_reservelow);
719 719
720void __init setup_arch(char **cmdline_p) 720void __init setup_arch(char **cmdline_p)
721{ 721{
722 int acpi = 0;
723 int amd = 0;
724 unsigned long flags; 722 unsigned long flags;
725 723
726#ifdef CONFIG_X86_32 724#ifdef CONFIG_X86_32
@@ -991,19 +989,7 @@ void __init setup_arch(char **cmdline_p)
991 989
992 early_acpi_boot_init(); 990 early_acpi_boot_init();
993 991
994#ifdef CONFIG_ACPI_NUMA 992 initmem_init();
995 /*
996 * Parse SRAT to discover nodes.
997 */
998 acpi = !x86_acpi_numa_init();
999#endif
1000
1001#ifdef CONFIG_AMD_NUMA
1002 if (!acpi)
1003 amd = !amd_numa_init();
1004#endif
1005
1006 initmem_init(acpi, amd);
1007 memblock_find_dma_reserve(); 993 memblock_find_dma_reserve();
1008 dma32_reserve_bootmem(); 994 dma32_reserve_bootmem();
1009 995
diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c
index 16adb6665603..5d43fa5141c6 100644
--- a/arch/x86/mm/init_32.c
+++ b/arch/x86/mm/init_32.c
@@ -644,7 +644,7 @@ void __init find_low_pfn_range(void)
644} 644}
645 645
646#ifndef CONFIG_NEED_MULTIPLE_NODES 646#ifndef CONFIG_NEED_MULTIPLE_NODES
647void __init initmem_init(int acpi, int k8) 647void __init initmem_init(void)
648{ 648{
649#ifdef CONFIG_HIGHMEM 649#ifdef CONFIG_HIGHMEM
650 highstart_pfn = highend_pfn = max_pfn; 650 highstart_pfn = highend_pfn = max_pfn;
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c
index 04cc027e5437..4f1f461fc1e9 100644
--- a/arch/x86/mm/init_64.c
+++ b/arch/x86/mm/init_64.c
@@ -603,7 +603,7 @@ kernel_physical_mapping_init(unsigned long start,
603} 603}
604 604
605#ifndef CONFIG_NUMA 605#ifndef CONFIG_NUMA
606void __init initmem_init(int acpi, int k8) 606void __init initmem_init(void)
607{ 607{
608 memblock_x86_register_active_regions(0, 0, max_pfn); 608 memblock_x86_register_active_regions(0, 0, max_pfn);
609 init_memory_mapping_high(); 609 init_memory_mapping_high();
diff --git a/arch/x86/mm/numa_32.c b/arch/x86/mm/numa_32.c
index 3249b374732f..bde3906420df 100644
--- a/arch/x86/mm/numa_32.c
+++ b/arch/x86/mm/numa_32.c
@@ -352,7 +352,7 @@ static void init_remap_allocator(int nid)
352 (ulong) node_remap_end_vaddr[nid]); 352 (ulong) node_remap_end_vaddr[nid]);
353} 353}
354 354
355void __init initmem_init(int acpi, int k8) 355void __init initmem_init(void)
356{ 356{
357 int nid; 357 int nid;
358 long kva_target_pfn; 358 long kva_target_pfn;
diff --git a/arch/x86/mm/numa_64.c b/arch/x86/mm/numa_64.c
index a083f515f004..656b0cffda63 100644
--- a/arch/x86/mm/numa_64.c
+++ b/arch/x86/mm/numa_64.c
@@ -13,6 +13,7 @@
13#include <linux/module.h> 13#include <linux/module.h>
14#include <linux/nodemask.h> 14#include <linux/nodemask.h>
15#include <linux/sched.h> 15#include <linux/sched.h>
16#include <linux/acpi.h>
16 17
17#include <asm/e820.h> 18#include <asm/e820.h>
18#include <asm/proto.h> 19#include <asm/proto.h>
@@ -579,10 +580,23 @@ static int __init numa_emulation(unsigned long start_pfn,
579} 580}
580#endif /* CONFIG_NUMA_EMU */ 581#endif /* CONFIG_NUMA_EMU */
581 582
582void __init initmem_init(int acpi, int amd) 583void __init initmem_init(void)
583{ 584{
585 int acpi = 0, amd = 0;
584 int i; 586 int i;
585 587
588#ifdef CONFIG_ACPI_NUMA
589 /*
590 * Parse SRAT to discover nodes.
591 */
592 acpi = !x86_acpi_numa_init();
593#endif
594
595#ifdef CONFIG_AMD_NUMA
596 if (!acpi)
597 amd = !amd_numa_init();
598#endif
599
586 nodes_clear(node_possible_map); 600 nodes_clear(node_possible_map);
587 nodes_clear(node_online_map); 601 nodes_clear(node_online_map);
588 602