aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/mm
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2009-03-06 03:12:50 -0800
committerIngo Molnar <mingo@elte.hu>2009-03-06 12:16:43 +0100
commitd1a8e7792047f7dca7eb5759250e2c12800bf262 (patch)
tree8b4c313e9d85fe7e43baa68e898f4d1ca189267a /arch/x86/mm
parent31bbed527e7039203920c51c9fb48c27aed0820c (diff)
x86: make "memtest" like "memtest=17"
Impact: make boot command line "memtest" do one loop by default So don't need to guess many patterns in one loop. Signed-off-by: Yinghai Lu <yinghai@kernel.org> LKML-Reference: <49B10532.3020105@kernel.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mm')
-rw-r--r--arch/x86/mm/memtest.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/mm/memtest.c b/arch/x86/mm/memtest.c
index 0bcd7883d03..605c8be0621 100644
--- a/arch/x86/mm/memtest.c
+++ b/arch/x86/mm/memtest.c
@@ -100,6 +100,9 @@ static int __init parse_memtest(char *arg)
{
if (arg)
memtest_pattern = simple_strtoul(arg, NULL, 0);
+ else
+ memtest_pattern = ARRAY_SIZE(patterns);
+
return 0;
}