]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: move some function out of setup_bootmem_alloc
authorYinghai Lu <yhlu.kernel@gmail.com>
Tue, 17 Jun 2008 17:02:45 +0000 (10:02 -0700)
committerIngo Molnar <mingo@elte.hu>
Tue, 8 Jul 2008 08:38:34 +0000 (10:38 +0200)
... to make it more like 64-bit.

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/setup_32.c

index 9692aeb8ecaecb42a873925a3e6c23d3643dd132..90a2b857b4a703697eafa0fbf437b3522470df73 100644 (file)
@@ -623,21 +623,6 @@ void __init setup_bootmem_allocator(void)
                free_bootmem_with_active_regions(i, max_low_pfn);
        early_res_to_bootmem(0, max_low_pfn<<PAGE_SHIFT);
 
-#ifdef CONFIG_ACPI_SLEEP
-       /*
-        * Reserve low memory region for sleep support.
-        */
-       acpi_reserve_bootmem();
-#endif
-#ifdef CONFIG_X86_FIND_SMP_CONFIG
-       /*
-        * Find and reserve possible boot-time SMP configuration:
-        */
-       find_smp_config();
-#endif
-       reserve_crashkernel();
-
-       reserve_ibft_region();
 }
 
 /*
@@ -792,6 +777,22 @@ void __init setup_arch(char **cmdline_p)
 
        max_low_pfn = setup_memory();
 
+#ifdef CONFIG_ACPI_SLEEP
+       /*
+        * Reserve low memory region for sleep support.
+        */
+       acpi_reserve_bootmem();
+#endif
+#ifdef CONFIG_X86_FIND_SMP_CONFIG
+       /*
+        * Find and reserve possible boot-time SMP configuration:
+        */
+       find_smp_config();
+#endif
+       reserve_crashkernel();
+
+       reserve_ibft_region();
+
 #ifdef CONFIG_KVM_CLOCK
        kvmclock_init();
 #endif