x86: make "memtest" like "memtest=17"
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
Signed-off-by Yinghai Lu <[email protected]>
--- arch/x86/mm/memtest.c | 3 +++ 1 file changed, 3 insertions(+)
arch/x86/mm/memtest.c +3 -0
@@ -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 ; }
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.
Signed-off-by Yinghai Lu <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- arch/x86/mm/memtest.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
arch/x86/mm/memtest.c +3 -0
@@ -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 ; }