linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] x86: make "memtest" like "memtest=17"
@ 2009-03-06 11:12 Yinghai Lu
  2009-03-06 11:18 ` [tip:x86/memtest] " Yinghai Lu
  0 siblings, 1 reply; 2+ messages in thread
From: Yinghai Lu @ 2009-03-06 11:12 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: linux-kernel


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;
 }
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [tip:x86/memtest] x86: make "memtest" like "memtest=17"
  2009-03-06 11:12 [PATCH] x86: make "memtest" like "memtest=17" Yinghai Lu
@ 2009-03-06 11:18 ` Yinghai Lu
  0 siblings, 0 replies; 2+ messages in thread
From: Yinghai Lu @ 2009-03-06 11:18 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, yinghai, tglx, mingo

Commit-ID:  d1a8e7792047f7dca7eb5759250e2c12800bf262
Gitweb:     http://git.kernel.org/tip/d1a8e7792047f7dca7eb5759250e2c12800bf262
Author:     "Yinghai Lu" <yinghai@kernel.org>
AuthorDate: Fri, 6 Mar 2009 03:12:50 -0800
Commit:     Ingo Molnar <mingo@elte.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@kernel.org>
LKML-Reference: <49B10532.3020105@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.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;
 }
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-06 11:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-06 11:12 [PATCH] x86: make "memtest" like "memtest=17" Yinghai Lu
2009-03-06 11:18 ` [tip:x86/memtest] " Yinghai Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).