Skip to contentSkip to conversation

x86: make "memtest" like "memtest=17"

PATCH In review Yinghai Lu 1 participant 2 messages Mar 6, 2009

Subsystems (2)
lore
Share & tools
lore

Yinghai Lu

author
#0 lore raw

PATCH 1/1 x86: make "memtest" like "memtest=17"

Impact: make boot command line memtest do one loop

so don't need to guess many pattern in one loop

---
 arch/x86/mm/memtest.c |    3 +++
 1 file changed, 3 insertions(+)
arch/x86/mm/memtest.c +3 -0
Index: linux-2.6/arch/x86/mm/memtest.c
===================================================================
@@ -100,6 +100,9 @@ static int __init parse_memtest(char *ar
 {
 	if (arg)
 		memtest_pattern = simple_strtoul(arg, NULL, 0);
+	else
+		memtest_pattern = ARRAY_SIZE(patterns);
+
 	return 0;
 }
 
author
#1 lore raw
Commit-ID:  d1a8e7792047f7dca7eb5759250e2c12800bf262
Gitweb:     http://git.kernel.org/tip/d1a8e7792047f7dca7eb5759250e2c12800bf262
Author:     "Yinghai Lu" <[email protected]>
AuthorDate: Fri, 6 Mar 2009 03:12:50 -0800
Commit:     Ingo Molnar <[email protected]>
CommitDate: Fri, 6 Mar 2009 12:16:43 +0100

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.

LKML-Reference: <[email protected]>

---
 arch/x86/mm/memtest.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
arch/x86/mm/memtest.c +3 -0
index 0bcd788..605c8be 100644
@@ -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;
 }