]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: make "memtest" like "memtest=17"
authorYinghai Lu <yinghai@kernel.org>
Fri, 6 Mar 2009 11:12:50 +0000 (03:12 -0800)
committerIngo Molnar <mingo@elte.hu>
Fri, 6 Mar 2009 11:16:43 +0000 (12:16 +0100)
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>
arch/x86/mm/memtest.c

index 0bcd7883d036d68e1943f49529c3e96c7a70fd62..605c8be06217b0da36344abd5f23d06326bcd87a 100644 (file)
@@ -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;
 }