public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.6.18-rc3-mm2 early_param mem= fix
@ 2006-08-06 17:22 Hugh Dickins
  2006-08-06 17:31 ` Hugh Dickins
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Hugh Dickins @ 2006-08-06 17:22 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Rusty Russell, Andi Kleen, linux-kernel

I was impressed by how fast 2.6.18-rc3-mm2 is under memory pressure,
until I noticed that my "mem=512M" boot option was doing nothing.  The
two fixes below got it working, but I wonder how many other early_param
"option=" args are wrong (e.g. "memmap=" in the same file): x86_64
shows many such, i386 shows only one, I've not followed it up further.

Hugh

--- 2.6.18-rc3-mm2/arch/x86_64/kernel/e820.c	2006-08-06 12:25:35.000000000 +0100
+++ linux/arch/x86_64/kernel/e820.c	2006-08-06 18:05:33.000000000 +0100
@@ -646,11 +646,11 @@ static int __init parse_memopt(char *p)
 {
 	if (!p)
 		return -EINVAL;
-	end_user_pfn = memparse(p, NULL);
+	end_user_pfn = memparse(p, &p);
 	end_user_pfn >>= PAGE_SHIFT;	
 	return 0;
 } 
-early_param("mem=", parse_memopt);
+early_param("mem", parse_memopt);
 
 static int userdef __initdata;
 

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

end of thread, other threads:[~2006-08-09  1:27 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-06 17:22 2.6.18-rc3-mm2 early_param mem= fix Hugh Dickins
2006-08-06 17:31 ` Hugh Dickins
2006-08-07 15:08   ` Andy Whitcroft
2006-08-07 21:09   ` Eric W. Biederman
2006-08-09  0:10     ` Keith Mannthey
2006-08-09  1:03       ` Andi Kleen
2006-08-09  1:27       ` Rusty Russell
2006-08-06 19:15 ` Andrew Morton
2006-08-07  2:06   ` Andi Kleen
2006-08-07  2:54 ` Rusty Russell
2006-08-07  2:55   ` Andi Kleen
2006-08-07  3:08     ` Rusty Russell
2006-08-07  3:13       ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox