]> git.karo-electronics.de Git - linux-beck.git/commitdiff
sh: bump up extra LMB reservations in bootmem init.
authorPaul Mundt <lethal@linux-sh.org>
Fri, 7 May 2010 06:10:42 +0000 (15:10 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 7 May 2010 06:10:42 +0000 (15:10 +0900)
This bumps up the extra LMB reservations in ordering so that they're
accounted for prior to iterating over the region list. This ensures that
reservations are visible both within the LMB and bootmem context.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/setup.c

index 08001729f5eeabc41a46e33352eda65b46eef30c..e3f0da7b865d313172ba412c98a7ef2c747d36e9 100644 (file)
@@ -275,6 +275,12 @@ void __init setup_bootmem_allocator(unsigned long free_pfn)
                __add_active_range(0, start_pfn, end_pfn);
        }
 
+       /*
+        * Handle additional early reservations
+        */
+       check_for_initrd();
+       reserve_crashkernel();
+
        /*
         * Add all physical memory to the bootmem map and mark each
         * area as present.
@@ -290,10 +296,6 @@ void __init setup_bootmem_allocator(unsigned long free_pfn)
        node_set_online(0);
 
        sparse_memory_present_with_active_regions(0);
-
-       check_for_initrd();
-
-       reserve_crashkernel();
 }
 
 #ifndef CONFIG_NEED_MULTIPLE_NODES