Skip to content

Commit 080e71e

Browse files
committed
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>
1 parent 36fa06d commit 080e71e

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎arch/sh/kernel/setup.c‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,12 @@ void __init setup_bootmem_allocator(unsigned long free_pfn)
275275
__add_active_range(0, start_pfn, end_pfn);
276276
}
277277

278+
/*
279+
* Handle additional early reservations
280+
*/
281+
check_for_initrd();
282+
reserve_crashkernel();
283+
278284
/*
279285
* Add all physical memory to the bootmem map and mark each
280286
* area as present.
@@ -290,10 +296,6 @@ void __init setup_bootmem_allocator(unsigned long free_pfn)
290296
node_set_online(0);
291297

292298
sparse_memory_present_with_active_regions(0);
293-
294-
check_for_initrd();
295-
296-
reserve_crashkernel();
297299
}
298300

299301
#ifndef CONFIG_NEED_MULTIPLE_NODES

0 commit comments

Comments
 (0)