diff options
author | Pekka Enberg <penberg@cs.helsinki.fi> | 2009-03-05 07:55:06 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-05 08:17:17 -0500 |
commit | 298af9d89f3f5292e81a0a00f729c415adc4d8fb (patch) | |
tree | 55bc9c7c2becac1b8d2458a8bd80fc874b7ea192 /arch | |
parent | f765090a2617b8d9cb73b71e0aa850c29460d8be (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')
-rw-r--r-- | arch/x86/mm/init.c | 26 | ||||
-rw-r--r-- | arch/x86/mm/init_32.c | 14 | ||||
-rw-r--r-- | arch/x86/mm/init_64.c | 10 |
3 files changed, 25 insertions, 25 deletions
diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c index 3a21b136da24..5bbdfe7459d2 100644 --- a/arch/x86/mm/init.c +++ b/arch/x86/mm/init.c | |||
@@ -23,9 +23,9 @@ kernel_physical_mapping_init(unsigned long start, | |||
23 | unsigned long page_size_mask); | 23 | unsigned long page_size_mask); |
24 | #endif | 24 | #endif |
25 | 25 | ||
26 | unsigned long __initdata table_start; | 26 | unsigned long __initdata e820_table_start; |
27 | unsigned long __meminitdata table_end; | 27 | unsigned long __meminitdata e820_table_end; |
28 | unsigned long __meminitdata table_top; | 28 | unsigned long __meminitdata e820_table_top; |
29 | 29 | ||
30 | int after_bootmem; | 30 | int after_bootmem; |
31 | 31 | ||
@@ -78,21 +78,21 @@ static void __init find_early_table_space(unsigned long end, int use_pse, | |||
78 | */ | 78 | */ |
79 | #ifdef CONFIG_X86_32 | 79 | #ifdef CONFIG_X86_32 |
80 | start = 0x7000; | 80 | start = 0x7000; |
81 | table_start = find_e820_area(start, max_pfn_mapped<<PAGE_SHIFT, | 81 | e820_table_start = find_e820_area(start, max_pfn_mapped<<PAGE_SHIFT, |
82 | tables, PAGE_SIZE); | 82 | tables, PAGE_SIZE); |
83 | #else /* CONFIG_X86_64 */ | 83 | #else /* CONFIG_X86_64 */ |
84 | start = 0x8000; | 84 | start = 0x8000; |
85 | table_start = find_e820_area(start, end, tables, PAGE_SIZE); | 85 | e820_table_start = find_e820_area(start, end, tables, PAGE_SIZE); |
86 | #endif | 86 | #endif |
87 | if (table_start == -1UL) | 87 | if (e820_table_start == -1UL) |
88 | panic("Cannot find space for the kernel page tables"); | 88 | panic("Cannot find space for the kernel page tables"); |
89 | 89 | ||
90 | table_start >>= PAGE_SHIFT; | 90 | e820_table_start >>= PAGE_SHIFT; |
91 | table_end = table_start; | 91 | e820_table_end = e820_table_start; |
92 | table_top = table_start + (tables >> PAGE_SHIFT); | 92 | e820_table_top = e820_table_start + (tables >> PAGE_SHIFT); |
93 | 93 | ||
94 | printk(KERN_DEBUG "kernel direct mapping tables up to %lx @ %lx-%lx\n", | 94 | printk(KERN_DEBUG "kernel direct mapping tables up to %lx @ %lx-%lx\n", |
95 | end, table_start << PAGE_SHIFT, table_top << PAGE_SHIFT); | 95 | end, e820_table_start << PAGE_SHIFT, e820_table_top << PAGE_SHIFT); |
96 | } | 96 | } |
97 | 97 | ||
98 | struct map_range { | 98 | struct map_range { |
@@ -324,9 +324,9 @@ unsigned long __init_refok init_memory_mapping(unsigned long start, | |||
324 | #endif | 324 | #endif |
325 | __flush_tlb_all(); | 325 | __flush_tlb_all(); |
326 | 326 | ||
327 | if (!after_bootmem && table_end > table_start) | 327 | if (!after_bootmem && e820_table_end > e820_table_start) |
328 | reserve_early(table_start << PAGE_SHIFT, | 328 | reserve_early(e820_table_start << PAGE_SHIFT, |
329 | table_end << PAGE_SHIFT, "PGTABLE"); | 329 | e820_table_end << PAGE_SHIFT, "PGTABLE"); |
330 | 330 | ||
331 | if (!after_bootmem) | 331 | if (!after_bootmem) |
332 | early_memtest(start, end); | 332 | early_memtest(start, end); |
diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c index 187522a0c66b..e9df0d9cdeb6 100644 --- a/arch/x86/mm/init_32.c +++ b/arch/x86/mm/init_32.c | |||
@@ -59,16 +59,16 @@ unsigned long highstart_pfn, highend_pfn; | |||
59 | static noinline int do_test_wp_bit(void); | 59 | static noinline int do_test_wp_bit(void); |
60 | 60 | ||
61 | 61 | ||
62 | extern unsigned long __initdata table_start; | 62 | extern unsigned long __initdata e820_table_start; |
63 | extern unsigned long __meminitdata table_end; | 63 | extern unsigned long __meminitdata e820_table_end; |
64 | extern unsigned long __meminitdata table_top; | 64 | extern unsigned long __meminitdata e820_table_top; |
65 | 65 | ||
66 | static __init void *alloc_low_page(void) | 66 | static __init void *alloc_low_page(void) |
67 | { | 67 | { |
68 | unsigned long pfn = table_end++; | 68 | unsigned long pfn = e820_table_end++; |
69 | void *adr; | 69 | void *adr; |
70 | 70 | ||
71 | if (pfn >= table_top) | 71 | if (pfn >= e820_table_top) |
72 | panic("alloc_low_page: ran out of memory"); | 72 | panic("alloc_low_page: ran out of memory"); |
73 | 73 | ||
74 | adr = __va(pfn * PAGE_SIZE); | 74 | adr = __va(pfn * PAGE_SIZE); |
@@ -149,8 +149,8 @@ static pte_t *__init page_table_kmap_check(pte_t *pte, pmd_t *pmd, | |||
149 | if (pmd_idx_kmap_begin != pmd_idx_kmap_end | 149 | if (pmd_idx_kmap_begin != pmd_idx_kmap_end |
150 | && (vaddr >> PMD_SHIFT) >= pmd_idx_kmap_begin | 150 | && (vaddr >> PMD_SHIFT) >= pmd_idx_kmap_begin |
151 | && (vaddr >> PMD_SHIFT) <= pmd_idx_kmap_end | 151 | && (vaddr >> PMD_SHIFT) <= pmd_idx_kmap_end |
152 | && ((__pa(pte) >> PAGE_SHIFT) < table_start | 152 | && ((__pa(pte) >> PAGE_SHIFT) < e820_table_start |
153 | || (__pa(pte) >> PAGE_SHIFT) >= table_end)) { | 153 | || (__pa(pte) >> PAGE_SHIFT) >= e820_table_end)) { |
154 | pte_t *newpte; | 154 | pte_t *newpte; |
155 | int i; | 155 | int i; |
156 | 156 | ||
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 | ||
286 | extern unsigned long __initdata table_start; | 286 | extern unsigned long __initdata e820_table_start; |
287 | extern unsigned long __meminitdata table_end; | 287 | extern unsigned long __meminitdata e820_table_end; |
288 | extern unsigned long __meminitdata table_top; | 288 | extern unsigned long __meminitdata e820_table_top; |
289 | 289 | ||
290 | static __ref void *alloc_low_page(unsigned long *phys) | 290 | static __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); |