]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - arch/x86/kernel/setup.c
Merge branch 'linus' into x86/x2apic
[mv-sheeva.git] / arch / x86 / kernel / setup.c
index 792b87853a7691b59f9767d743ad204a451e6850..60e8de19644b0aae3e2763dfa6c08fe3275053dc 100644 (file)
@@ -790,10 +790,6 @@ void __init setup_arch(char **cmdline_p)
 
        initmem_init(0, max_pfn);
 
-#ifdef CONFIG_X86_64
-       dma32_reserve_bootmem();
-#endif
-
 #ifdef CONFIG_ACPI_SLEEP
        /*
         * Reserve low memory region for sleep support.
@@ -808,6 +804,15 @@ void __init setup_arch(char **cmdline_p)
 #endif
        reserve_crashkernel();
 
+#ifdef CONFIG_X86_64
+       /*
+        * dma32_reserve_bootmem() allocates bootmem which may conflict
+        * with the crashkernel command line, so do that after
+        * reserve_crashkernel()
+        */
+       dma32_reserve_bootmem();
+#endif
+
        reserve_ibft_region();
 
 #ifdef CONFIG_KVM_CLOCK