aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyril Chemparathy <cyril@ti.com>2012-09-24 15:25:47 -0400
committerCyril Chemparathy <cyril@ti.com>2012-09-24 15:55:03 -0400
commitca75993ec03b1a1e72ca9666719ba6adebbf2fa8 (patch)
tree8938a1595ba88f1d32737e8ec98e3aa60c514762
parent38e58633b69bcfb5acd81dd3396948a167715966 (diff)
downloadlinux-keystone-memblock.tar.gz
ARM: use memblock to reserve space for kexecmemblock
With this patch, we now use the memblock allocator to reserve space for the crash kernel. Signed-off-by: Cyril Chemparathy <cyril@ti.com>
-rw-r--r--arch/arm/kernel/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
index b596fb048461c..5b2e1bd8cc0ab 100644
--- a/arch/arm/kernel/setup.c
+++ b/arch/arm/kernel/setup.c
@@ -852,7 +852,7 @@ static void __init reserve_crashkernel(void)
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);