public inbox for linux-kernel@vger.kernel.org
 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@vger.kernel.org


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

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