Messages in this thread Patch in this message | | | Date | Fri, 06 Mar 2009 03:12:50 -0800 | From | Yinghai Lu <> | Subject | [PATCH] 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 <yinghai@kernel.org>
--- arch/x86/mm/memtest.c | 3 +++ 1 file changed, 3 insertions(+)
Index: linux-2.6/arch/x86/mm/memtest.c =================================================================== --- linux-2.6.orig/arch/x86/mm/memtest.c +++ 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; }
| |