[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-d1a8e7792047f7dca7eb5759250e2c12800bf262@git.kernel.org>
Date: Fri, 6 Mar 2009 11:18:27 GMT
From: Yinghai Lu <yinghai@...nel.org>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
yinghai@...nel.org, tglx@...utronix.de, mingo@...e.hu
Subject: [tip:x86/memtest] x86: make "memtest" like "memtest=17"
Commit-ID: d1a8e7792047f7dca7eb5759250e2c12800bf262
Gitweb: http://git.kernel.org/tip/d1a8e7792047f7dca7eb5759250e2c12800bf262
Author: "Yinghai Lu" <yinghai@...nel.org>
AuthorDate: Fri, 6 Mar 2009 03:12:50 -0800
Commit: Ingo Molnar <mingo@...e.hu>
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 <yinghai@...nel.org>
LKML-Reference: <49B10532.3020105@...nel.org>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
arch/x86/mm/memtest.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/arch/x86/mm/memtest.c b/arch/x86/mm/memtest.c
index 0bcd788..605c8be 100644
--- a/arch/x86/mm/memtest.c
+++ b/arch/x86/mm/memtest.c
@@ -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;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists