diff options
author | Vladimir Murzin <vladimir.murzin@arm.com> | 2015-04-14 18:48:33 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-14 19:49:06 -0400 |
commit | 36dd9086cb31613ace45e94c18a17241d3d0aac4 (patch) | |
tree | 68cbf0508e54daf058417854410587fc696cda15 /arch/arm64/mm | |
parent | 7f70baeeb9e2d2b2a37a4bd3727d709547c4ae41 (diff) |
arm64: 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>
Tested-by: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ingo Molnar <mingo@elte.hu>
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/arm64/mm')
-rw-r--r-- | arch/arm64/mm/init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c index ae85da6307bb..597831bdddf3 100644 --- a/arch/arm64/mm/init.c +++ b/arch/arm64/mm/init.c | |||
@@ -190,6 +190,8 @@ void __init bootmem_init(void) | |||
190 | min = PFN_UP(memblock_start_of_DRAM()); | 190 | min = PFN_UP(memblock_start_of_DRAM()); |
191 | max = PFN_DOWN(memblock_end_of_DRAM()); | 191 | max = PFN_DOWN(memblock_end_of_DRAM()); |
192 | 192 | ||
193 | early_memtest(min << PAGE_SHIFT, max << PAGE_SHIFT); | ||
194 | |||
193 | /* | 195 | /* |
194 | * Sparsemem tries to allocate bootmem in memory_present(), so must be | 196 | * Sparsemem tries to allocate bootmem in memory_present(), so must be |
195 | * done after the fixed reservations. | 197 | * done after the fixed reservations. |