aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/mm/init.c
diff options
context:
space:
mode:
authorDave Hansen <haveblue@us.ibm.com>2005-06-23 03:07:41 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-23 12:45:01 -0400
commit5b505b90b2d54e526cc8d123bdef3b98c9f0bbc6 (patch)
treec56ce2547e654eb0a2166171ba8ca19eaa8cd65f /arch/i386/mm/init.c
parent348f8b6c4837a07304d2f72b11ce8d96588065e0 (diff)
[PATCH] sparsemem base: teach discontig about sparse ranges
discontig.c has some assumptions that mem_map[]s inside of a node are contiguous. Teach it to make sure that each region that it's bringing online is actually made up of valid ranges of ram. Written-by: Andy Whitcroft <apw@shadowen.org> Signed-off-by: Dave Hansen <haveblue@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/i386/mm/init.c')
-rw-r--r--arch/i386/mm/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/i386/mm/init.c b/arch/i386/mm/init.c
index 8766c771bb45..666ca79fb50a 100644
--- a/arch/i386/mm/init.c
+++ b/arch/i386/mm/init.c
@@ -191,7 +191,7 @@ static inline int page_kills_ppro(unsigned long pagenr)
191 191
192extern int is_available_memory(efi_memory_desc_t *); 192extern int is_available_memory(efi_memory_desc_t *);
193 193
194static inline int page_is_ram(unsigned long pagenr) 194int page_is_ram(unsigned long pagenr)
195{ 195{
196 int i; 196 int i;
197 unsigned long addr, end; 197 unsigned long addr, end;