aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-05-07 02:10:42 -0400
committerPaul Mundt <lethal@linux-sh.org>2010-05-07 02:10:42 -0400
commit080e71e13d99d850875c0335c364766162eae7c6 (patch)
tree8612d86e668186303044e89ff0a5073dbea6d2c0
parent36fa06d6b5ef1874d012c04b23d5b8982b1f8dea (diff)
sh: bump up extra LMB reservations in bootmem init.
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>
-rw-r--r--arch/sh/kernel/setup.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c
index 08001729f5ee..e3f0da7b865d 100644
--- a/arch/sh/kernel/setup.c
+++ b/arch/sh/kernel/setup.c
@@ -276,6 +276,12 @@ void __init setup_bootmem_allocator(unsigned long free_pfn)
276 } 276 }
277 277
278 /* 278 /*
279 * Handle additional early reservations
280 */
281 check_for_initrd();
282 reserve_crashkernel();
283
284 /*
279 * Add all physical memory to the bootmem map and mark each 285 * Add all physical memory to the bootmem map and mark each
280 * area as present. 286 * area as present.
281 */ 287 */
@@ -290,10 +296,6 @@ void __init setup_bootmem_allocator(unsigned long free_pfn)
290 node_set_online(0); 296 node_set_online(0);
291 297
292 sparse_memory_present_with_active_regions(0); 298 sparse_memory_present_with_active_regions(0);
293
294 check_for_initrd();
295
296 reserve_crashkernel();
297} 299}
298 300
299#ifndef CONFIG_NEED_MULTIPLE_NODES 301#ifndef CONFIG_NEED_MULTIPLE_NODES