aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86_64/mm
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2005-09-12 12:49:24 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-12 13:49:57 -0400
commitb9aac10dddd927f0b9cfcca19a272ded87015574 (patch)
tree4a841306db9b3fb94f7b4ae550cac2c994343dba /arch/x86_64/mm
parent0a43e4bf7489074c667f24b9670ecd88f6eb0a07 (diff)
[PATCH] x86-64: Remove redundant max_mapnr and replace with end_pfn
The FLATMEM people added it, but there doesn't seem a good reason because end_pfn is identical. Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/x86_64/mm')
-rw-r--r--arch/x86_64/mm/init.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/x86_64/mm/init.c b/arch/x86_64/mm/init.c
index 5659d979316d..b6a826d6c182 100644
--- a/arch/x86_64/mm/init.c
+++ b/arch/x86_64/mm/init.c
@@ -411,11 +411,6 @@ void __init mem_init(void)
411#ifdef CONFIG_NUMA 411#ifdef CONFIG_NUMA
412 totalram_pages = numa_free_all_bootmem(); 412 totalram_pages = numa_free_all_bootmem();
413#else 413#else
414
415#ifdef CONFIG_FLATMEM
416 max_mapnr = end_pfn;
417 if (!mem_map) BUG();
418#endif
419 totalram_pages = free_all_bootmem(); 414 totalram_pages = free_all_bootmem();
420#endif 415#endif
421 reservedpages = end_pfn - totalram_pages - e820_hole_size(0, end_pfn); 416 reservedpages = end_pfn - totalram_pages - e820_hole_size(0, end_pfn);