diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-05-20 23:10:58 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-25 05:35:53 -0400 |
commit | bf62f3981c7076714e3b9f5fa6989a806cad02bf (patch) | |
tree | 8c47942af4b670d6381e853ff22f085b336ebc68 /include/asm-x86 | |
parent | aafbdf71f1d3aeffd679b1a86e1b28f71515856c (diff) |
x86: move e820_mark_nosave_regions to e820.c
and make e820_mark_nosave_regions to take limit_pfn to use max_low_pfn
for 32bit and end_pfn for 64bit
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86')
-rw-r--r-- | include/asm-x86/e820.h | 9 | ||||
-rw-r--r-- | include/asm-x86/e820_32.h | 8 | ||||
-rw-r--r-- | include/asm-x86/e820_64.h | 1 |
3 files changed, 9 insertions, 9 deletions
diff --git a/include/asm-x86/e820.h b/include/asm-x86/e820.h index 5a58e2bb1d78..4266a2c5f2e8 100644 --- a/include/asm-x86/e820.h +++ b/include/asm-x86/e820.h | |||
@@ -70,6 +70,15 @@ extern u64 update_memory_range(u64 start, u64 size, unsigned old_type, | |||
70 | extern void update_e820(void); | 70 | extern void update_e820(void); |
71 | extern void e820_setup_gap(void); | 71 | extern void e820_setup_gap(void); |
72 | 72 | ||
73 | #if defined(CONFIG_X86_64) || \ | ||
74 | (defined(CONFIG_X86_32) && defined(CONFIG_HIBERNATION)) | ||
75 | extern void e820_mark_nosave_regions(unsigned long limit_pfn); | ||
76 | #else | ||
77 | static inline void e820_mark_nosave_regions(unsigned long limit_pfn) | ||
78 | { | ||
79 | } | ||
80 | #endif | ||
81 | |||
73 | extern u64 find_e820_area(u64 start, u64 end, u64 size, u64 align); | 82 | extern u64 find_e820_area(u64 start, u64 end, u64 size, u64 align); |
74 | extern u64 find_e820_area_size(u64 start, u64 *sizep, u64 align); | 83 | extern u64 find_e820_area_size(u64 start, u64 *sizep, u64 align); |
75 | extern void reserve_early(u64 start, u64 end, char *name); | 84 | extern void reserve_early(u64 start, u64 end, char *name); |
diff --git a/include/asm-x86/e820_32.h b/include/asm-x86/e820_32.h index 9576b438fbd9..7ace82570a36 100644 --- a/include/asm-x86/e820_32.h +++ b/include/asm-x86/e820_32.h | |||
@@ -28,13 +28,5 @@ extern void init_iomem_resources(struct resource *code_resource, | |||
28 | struct resource *data_resource, | 28 | struct resource *data_resource, |
29 | struct resource *bss_resource); | 29 | struct resource *bss_resource); |
30 | 30 | ||
31 | #if defined(CONFIG_PM) && defined(CONFIG_HIBERNATION) | ||
32 | extern void e820_mark_nosave_regions(void); | ||
33 | #else | ||
34 | static inline void e820_mark_nosave_regions(void) | ||
35 | { | ||
36 | } | ||
37 | #endif | ||
38 | |||
39 | #endif/*!__ASSEMBLY__*/ | 31 | #endif/*!__ASSEMBLY__*/ |
40 | #endif/*__E820_HEADER*/ | 32 | #endif/*__E820_HEADER*/ |
diff --git a/include/asm-x86/e820_64.h b/include/asm-x86/e820_64.h index 37f176a02bc6..917963ccab69 100644 --- a/include/asm-x86/e820_64.h +++ b/include/asm-x86/e820_64.h | |||
@@ -18,7 +18,6 @@ extern void setup_memory_region(void); | |||
18 | extern void contig_e820_setup(void); | 18 | extern void contig_e820_setup(void); |
19 | extern unsigned long e820_end_of_ram(void); | 19 | extern unsigned long e820_end_of_ram(void); |
20 | extern void e820_reserve_resources(void); | 20 | extern void e820_reserve_resources(void); |
21 | extern void e820_mark_nosave_regions(void); | ||
22 | extern int e820_any_non_reserved(unsigned long start, unsigned long end); | 21 | extern int e820_any_non_reserved(unsigned long start, unsigned long end); |
23 | extern int is_memory_any_valid(unsigned long start, unsigned long end); | 22 | extern int is_memory_any_valid(unsigned long start, unsigned long end); |
24 | extern int e820_all_non_reserved(unsigned long start, unsigned long end); | 23 | extern int e820_all_non_reserved(unsigned long start, unsigned long end); |