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>
diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c
index 0800172..e3f0da7 100644
--- a/arch/sh/kernel/setup.c
+++ b/arch/sh/kernel/setup.c
@@ -276,6 +276,12 @@
}
/*
+ * 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 @@
node_set_online(0);
sparse_memory_present_with_active_regions(0);
-
- check_for_initrd();
-
- reserve_crashkernel();
}
#ifndef CONFIG_NEED_MULTIPLE_NODES