aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/init_64.c
diff options
context:
space:
mode:
authorPekka Enberg <penberg@cs.helsinki.fi>2009-03-05 07:55:06 -0500
committerIngo Molnar <mingo@elte.hu>2009-03-05 08:17:17 -0500
commit298af9d89f3f5292e81a0a00f729c415adc4d8fb (patch)
tree55bc9c7c2becac1b8d2458a8bd80fc874b7ea192 /arch/x86/mm/init_64.c
parentf765090a2617b8d9cb73b71e0aa850c29460d8be (diff)
x86: fix up some bad global variable names in mm/init.c
Impact: cleanup The table_start, table_end, and table_top are too generic for global namespace so rename them to be more specific. Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi> Cc: Yinghai Lu <yinghai@kernel.org> LKML-Reference: <1236257708-27269-15-git-send-email-penberg@cs.helsinki.fi> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mm/init_64.c')
-rw-r--r--arch/x86/mm/init_64.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c
index a32fe0756088..a1d33c58b497 100644
--- a/arch/x86/mm/init_64.c
+++ b/arch/x86/mm/init_64.c
@@ -283,13 +283,13 @@ void __init cleanup_highmap(void)
283 } 283 }
284} 284}
285 285
286extern unsigned long __initdata table_start; 286extern unsigned long __initdata e820_table_start;
287extern unsigned long __meminitdata table_end; 287extern unsigned long __meminitdata e820_table_end;
288extern unsigned long __meminitdata table_top; 288extern unsigned long __meminitdata e820_table_top;
289 289
290static __ref void *alloc_low_page(unsigned long *phys) 290static __ref void *alloc_low_page(unsigned long *phys)
291{ 291{
292 unsigned long pfn = table_end++; 292 unsigned long pfn = e820_table_end++;
293 void *adr; 293 void *adr;
294 294
295 if (after_bootmem) { 295 if (after_bootmem) {
@@ -299,7 +299,7 @@ static __ref void *alloc_low_page(unsigned long *phys)
299 return adr; 299 return adr;
300 } 300 }
301 301
302 if (pfn >= table_top) 302 if (pfn >= e820_table_top)
303 panic("alloc_low_page: ran out of memory"); 303 panic("alloc_low_page: ran out of memory");
304 304
305 adr = early_memremap(pfn * PAGE_SIZE, PAGE_SIZE); 305 adr = early_memremap(pfn * PAGE_SIZE, PAGE_SIZE);