aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorVladimir Murzin <vladimir.murzin@arm.com>2015-04-14 18:48:37 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-04-14 19:49:06 -0400
commitd30eae473360aea25e0584d4fbf6a70417d89784 (patch)
treefda164a7b9d179dbe176ed66765f6848d1c9c8da /arch/arm
parent36dd9086cb31613ace45e94c18a17241d3d0aac4 (diff)
arm: add support for memtest
Add support for memtest command line option. Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com> Acked-by: Will Deacon <will.deacon@arm.com> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Russell King <rmk@arm.linux.org.uk> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mm/init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c
index 1609b022a72f..3d0e9aed4b40 100644
--- a/arch/arm/mm/init.c
+++ b/arch/arm/mm/init.c
@@ -335,6 +335,9 @@ void __init bootmem_init(void)
335 335
336 find_limits(&min, &max_low, &max_high); 336 find_limits(&min, &max_low, &max_high);
337 337
338 early_memtest((phys_addr_t)min << PAGE_SHIFT,
339 (phys_addr_t)max_low << PAGE_SHIFT);
340
338 /* 341 /*
339 * Sparsemem tries to allocate bootmem in memory_present(), 342 * Sparsemem tries to allocate bootmem in memory_present(),
340 * so must be done after the fixed reservations 343 * so must be done after the fixed reservations