diff options
-rw-r--r-- | include/linux/bootmem.h | 1 | ||||
-rw-r--r-- | mm/bootmem.c | 18 |
2 files changed, 0 insertions, 19 deletions
diff --git a/include/linux/bootmem.h b/include/linux/bootmem.h index 0e48c3221d82..f1f07d31a3af 100644 --- a/include/linux/bootmem.h +++ b/include/linux/bootmem.h | |||
@@ -44,7 +44,6 @@ extern unsigned long init_bootmem_node(pg_data_t *pgdat, | |||
44 | unsigned long endpfn); | 44 | unsigned long endpfn); |
45 | extern unsigned long init_bootmem(unsigned long addr, unsigned long memend); | 45 | extern unsigned long init_bootmem(unsigned long addr, unsigned long memend); |
46 | 46 | ||
47 | extern unsigned long free_all_bootmem_node(pg_data_t *pgdat); | ||
48 | extern unsigned long free_all_bootmem(void); | 47 | extern unsigned long free_all_bootmem(void); |
49 | extern void reset_all_zones_managed_pages(void); | 48 | extern void reset_all_zones_managed_pages(void); |
50 | 49 | ||
diff --git a/mm/bootmem.c b/mm/bootmem.c index 58609bbf584e..6ab7744e692e 100644 --- a/mm/bootmem.c +++ b/mm/bootmem.c | |||
@@ -264,24 +264,6 @@ void __init reset_all_zones_managed_pages(void) | |||
264 | } | 264 | } |
265 | 265 | ||
266 | /** | 266 | /** |
267 | * free_all_bootmem_node - release a node's free pages to the buddy allocator | ||
268 | * @pgdat: node to be released | ||
269 | * | ||
270 | * Returns the number of pages actually released. | ||
271 | */ | ||
272 | unsigned long __init free_all_bootmem_node(pg_data_t *pgdat) | ||
273 | { | ||
274 | unsigned long pages; | ||
275 | |||
276 | register_page_bootmem_info_node(pgdat); | ||
277 | reset_node_managed_pages(pgdat); | ||
278 | pages = free_all_bootmem_core(pgdat->bdata); | ||
279 | totalram_pages += pages; | ||
280 | |||
281 | return pages; | ||
282 | } | ||
283 | |||
284 | /** | ||
285 | * free_all_bootmem - release free pages to the buddy allocator | 267 | * free_all_bootmem - release free pages to the buddy allocator |
286 | * | 268 | * |
287 | * Returns the number of pages actually released. | 269 | * Returns the number of pages actually released. |