diff options
Diffstat (limited to 'include/linux/memblock.h')
-rw-r--r-- | include/linux/memblock.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/include/linux/memblock.h b/include/linux/memblock.h index c914112cd24f..7d70fdd43db4 100644 --- a/include/linux/memblock.h +++ b/include/linux/memblock.h | |||
@@ -64,29 +64,6 @@ extern int memblock_find(struct memblock_region *res); | |||
64 | 64 | ||
65 | extern void memblock_dump_all(void); | 65 | extern void memblock_dump_all(void); |
66 | 66 | ||
67 | /* Obsolete accessors */ | ||
68 | static inline u64 | ||
69 | memblock_size_bytes(struct memblock_type *type, unsigned long region_nr) | ||
70 | { | ||
71 | return type->regions[region_nr].size; | ||
72 | } | ||
73 | static inline u64 | ||
74 | memblock_size_pages(struct memblock_type *type, unsigned long region_nr) | ||
75 | { | ||
76 | return memblock_size_bytes(type, region_nr) >> PAGE_SHIFT; | ||
77 | } | ||
78 | static inline u64 | ||
79 | memblock_start_pfn(struct memblock_type *type, unsigned long region_nr) | ||
80 | { | ||
81 | return type->regions[region_nr].base >> PAGE_SHIFT; | ||
82 | } | ||
83 | static inline u64 | ||
84 | memblock_end_pfn(struct memblock_type *type, unsigned long region_nr) | ||
85 | { | ||
86 | return memblock_start_pfn(type, region_nr) + | ||
87 | memblock_size_pages(type, region_nr); | ||
88 | } | ||
89 | |||
90 | /* | 67 | /* |
91 | * pfn conversion functions | 68 | * pfn conversion functions |
92 | * | 69 | * |