diff options
author | Pekka Enberg <penberg@cs.helsinki.fi> | 2009-03-05 07:55:08 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-05 08:17:18 -0500 |
commit | 4fcb208391be5cf82c6fe2779c5eb9245ac97e91 (patch) | |
tree | da326e0c21e6d32c9cda6c18a74793e65666b3f0 /arch/x86 | |
parent | e53fb04fce6d246ebed755b904ed1b0b814a754c (diff) |
x86: move function and variable declarations to asm/init.h
Impact: cleanup
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <1236257708-27269-17-git-send-email-penberg@cs.helsinki.fi>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/include/asm/init.h | 18 | ||||
-rw-r--r-- | arch/x86/mm/init.c | 10 | ||||
-rw-r--r-- | arch/x86/mm/init_32.c | 6 | ||||
-rw-r--r-- | arch/x86/mm/init_64.c | 5 |
4 files changed, 21 insertions, 18 deletions
diff --git a/arch/x86/include/asm/init.h b/arch/x86/include/asm/init.h new file mode 100644 index 000000000000..36fb1a6a5109 --- /dev/null +++ b/arch/x86/include/asm/init.h | |||
@@ -0,0 +1,18 @@ | |||
1 | #ifndef _ASM_X86_INIT_32_H | ||
2 | #define _ASM_X86_INIT_32_H | ||
3 | |||
4 | #ifdef CONFIG_X86_32 | ||
5 | extern void __init early_ioremap_page_table_range_init(void); | ||
6 | #endif | ||
7 | |||
8 | extern unsigned long __init | ||
9 | kernel_physical_mapping_init(unsigned long start, | ||
10 | unsigned long end, | ||
11 | unsigned long page_size_mask); | ||
12 | |||
13 | |||
14 | extern unsigned long __initdata e820_table_start; | ||
15 | extern unsigned long __meminitdata e820_table_end; | ||
16 | extern unsigned long __meminitdata e820_table_top; | ||
17 | |||
18 | #endif /* _ASM_X86_INIT_32_H */ | ||
diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c index 6475693a81ab..6d63e3d1253d 100644 --- a/arch/x86/mm/init.c +++ b/arch/x86/mm/init.c | |||
@@ -3,21 +3,13 @@ | |||
3 | 3 | ||
4 | #include <asm/cacheflush.h> | 4 | #include <asm/cacheflush.h> |
5 | #include <asm/e820.h> | 5 | #include <asm/e820.h> |
6 | #include <asm/init.h> | ||
6 | #include <asm/page.h> | 7 | #include <asm/page.h> |
7 | #include <asm/page_types.h> | 8 | #include <asm/page_types.h> |
8 | #include <asm/sections.h> | 9 | #include <asm/sections.h> |
9 | #include <asm/system.h> | 10 | #include <asm/system.h> |
10 | #include <asm/tlbflush.h> | 11 | #include <asm/tlbflush.h> |
11 | 12 | ||
12 | #ifdef CONFIG_X86_32 | ||
13 | extern void __init early_ioremap_page_table_range_init(void); | ||
14 | #endif | ||
15 | |||
16 | extern unsigned long __init | ||
17 | kernel_physical_mapping_init(unsigned long start, | ||
18 | unsigned long end, | ||
19 | unsigned long page_size_mask); | ||
20 | |||
21 | unsigned long __initdata e820_table_start; | 13 | unsigned long __initdata e820_table_start; |
22 | unsigned long __meminitdata e820_table_end; | 14 | unsigned long __meminitdata e820_table_end; |
23 | unsigned long __meminitdata e820_table_top; | 15 | unsigned long __meminitdata e820_table_top; |
diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c index 5ca9c6c3439e..1669693e97de 100644 --- a/arch/x86/mm/init_32.c +++ b/arch/x86/mm/init_32.c | |||
@@ -49,6 +49,7 @@ | |||
49 | #include <asm/paravirt.h> | 49 | #include <asm/paravirt.h> |
50 | #include <asm/setup.h> | 50 | #include <asm/setup.h> |
51 | #include <asm/cacheflush.h> | 51 | #include <asm/cacheflush.h> |
52 | #include <asm/init.h> | ||
52 | 53 | ||
53 | unsigned long max_low_pfn_mapped; | 54 | unsigned long max_low_pfn_mapped; |
54 | unsigned long max_pfn_mapped; | 55 | unsigned long max_pfn_mapped; |
@@ -58,11 +59,6 @@ unsigned long highstart_pfn, highend_pfn; | |||
58 | 59 | ||
59 | static noinline int do_test_wp_bit(void); | 60 | static noinline int do_test_wp_bit(void); |
60 | 61 | ||
61 | |||
62 | extern unsigned long __initdata e820_table_start; | ||
63 | extern unsigned long __meminitdata e820_table_end; | ||
64 | extern unsigned long __meminitdata e820_table_top; | ||
65 | |||
66 | static __init void *alloc_low_page(void) | 62 | static __init void *alloc_low_page(void) |
67 | { | 63 | { |
68 | unsigned long pfn = e820_table_end++; | 64 | unsigned long pfn = e820_table_end++; |
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index f441ae316312..7dd7ce49d69b 100644 --- a/arch/x86/mm/init_64.c +++ b/arch/x86/mm/init_64.c | |||
@@ -48,6 +48,7 @@ | |||
48 | #include <asm/kdebug.h> | 48 | #include <asm/kdebug.h> |
49 | #include <asm/numa.h> | 49 | #include <asm/numa.h> |
50 | #include <asm/cacheflush.h> | 50 | #include <asm/cacheflush.h> |
51 | #include <asm/init.h> | ||
51 | 52 | ||
52 | /* | 53 | /* |
53 | * end_pfn only includes RAM, while max_pfn_mapped includes all e820 entries. | 54 | * end_pfn only includes RAM, while max_pfn_mapped includes all e820 entries. |
@@ -283,10 +284,6 @@ void __init cleanup_highmap(void) | |||
283 | } | 284 | } |
284 | } | 285 | } |
285 | 286 | ||
286 | extern unsigned long __initdata e820_table_start; | ||
287 | extern unsigned long __meminitdata e820_table_end; | ||
288 | extern unsigned long __meminitdata e820_table_top; | ||
289 | |||
290 | static __ref void *alloc_low_page(unsigned long *phys) | 287 | static __ref void *alloc_low_page(unsigned long *phys) |
291 | { | 288 | { |
292 | unsigned long pfn = e820_table_end++; | 289 | unsigned long pfn = e820_table_end++; |