ARM: use memblock to reserve space for kexec
With this patch, we now use the memblock allocator to reserve space for the
crash kernel.
Signed-off-by: Cyril Chemparathy <cyril@ti.com>
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
index b596fb0..5b2e1bd 100644
--- a/arch/arm/kernel/setup.c
+++ b/arch/arm/kernel/setup.c
@@ -852,7 +852,7 @@
if (ret)
return;
- ret = reserve_bootmem(crash_base, crash_size, BOOTMEM_EXCLUSIVE);
+ ret = memblock_reserve(crash_base, crash_size);
if (ret < 0) {
printk(KERN_WARNING "crashkernel reservation failed - "
"memory is in use (0x%lx)\n", (unsigned long)crash_base);