aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/asm-x86/e820.h9
-rw-r--r--include/asm-x86/e820_32.h8
-rw-r--r--include/asm-x86/e820_64.h1
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,
70extern void update_e820(void); 70extern void update_e820(void);
71extern void e820_setup_gap(void); 71extern void e820_setup_gap(void);
72 72
73#if defined(CONFIG_X86_64) || \
74 (defined(CONFIG_X86_32) && defined(CONFIG_HIBERNATION))
75extern void e820_mark_nosave_regions(unsigned long limit_pfn);
76#else
77static inline void e820_mark_nosave_regions(unsigned long limit_pfn)
78{
79}
80#endif
81
73extern u64 find_e820_area(u64 start, u64 end, u64 size, u64 align); 82extern u64 find_e820_area(u64 start, u64 end, u64 size, u64 align);
74extern u64 find_e820_area_size(u64 start, u64 *sizep, u64 align); 83extern u64 find_e820_area_size(u64 start, u64 *sizep, u64 align);
75extern void reserve_early(u64 start, u64 end, char *name); 84extern 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)
32extern void e820_mark_nosave_regions(void);
33#else
34static 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);
18extern void contig_e820_setup(void); 18extern void contig_e820_setup(void);
19extern unsigned long e820_end_of_ram(void); 19extern unsigned long e820_end_of_ram(void);
20extern void e820_reserve_resources(void); 20extern void e820_reserve_resources(void);
21extern void e820_mark_nosave_regions(void);
22extern int e820_any_non_reserved(unsigned long start, unsigned long end); 21extern int e820_any_non_reserved(unsigned long start, unsigned long end);
23extern int is_memory_any_valid(unsigned long start, unsigned long end); 22extern int is_memory_any_valid(unsigned long start, unsigned long end);
24extern int e820_all_non_reserved(unsigned long start, unsigned long end); 23extern int e820_all_non_reserved(unsigned long start, unsigned long end);