projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f70bae
)
arm64: add support for memtest
author
Vladimir Murzin
<
[email protected]
>
Tue, 14 Apr 2015 22:48:33 +0000
(15:48 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 14 Apr 2015 23:49:06 +0000
(16:49 -0700)
Add support for memtest command line option.
Signed-off-by: Vladimir Murzin <
[email protected]
>
Acked-by: Will Deacon <
[email protected]
>
Tested-by: Mark Rutland <
[email protected]
>
Cc: Catalin Marinas <
[email protected]
>
Cc: Russell King <
[email protected]
>
Cc: "H. Peter Anvin" <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: Thomas Gleixner <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/arm64/mm/init.c
patch
|
blob
|
history
diff --git
a/arch/arm64/mm/init.c
b/arch/arm64/mm/init.c
index ae85da6307bb921e286bb7a99a218cab5dbe137e..597831bdddf3db2c7d8f44e4d33fbc13bcb286cb 100644
(file)
--- a/
arch/arm64/mm/init.c
+++ b/
arch/arm64/mm/init.c
@@
-190,6
+190,8
@@
void __init bootmem_init(void)
min = PFN_UP(memblock_start_of_DRAM());
max = PFN_DOWN(memblock_end_of_DRAM());
+ early_memtest(min << PAGE_SHIFT, max << PAGE_SHIFT);
+
/*
* Sparsemem tries to allocate bootmem in memory_present(), so must be
* done after the fixed reservations.