Skip to content

Commit d1a8e77

Browse files
Yinghai LuIngo Molnar
authored andcommitted
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>
1 parent 31bbed5 commit d1a8e77

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎arch/x86/mm/memtest.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ static int __init parse_memtest(char *arg)
100100
{
101101
if (arg)
102102
memtest_pattern = simple_strtoul(arg, NULL, 0);
103+
else
104+
memtest_pattern = ARRAY_SIZE(patterns);
105+
103106
return 0;
104107
}
105108

0 commit comments

Comments
 (0)