diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/bootmem.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mm/bootmem.c b/mm/bootmem.c index 2058cb7595f2..ba37d62b684a 100644 --- a/mm/bootmem.c +++ b/mm/bootmem.c | |||
@@ -312,7 +312,13 @@ unsigned long __init free_all_bootmem(void) | |||
312 | */ | 312 | */ |
313 | return free_all_memory_core_early(MAX_NUMNODES); | 313 | return free_all_memory_core_early(MAX_NUMNODES); |
314 | #else | 314 | #else |
315 | return free_all_bootmem_core(NODE_DATA(0)->bdata); | 315 | unsigned long total_pages = 0; |
316 | bootmem_data_t *bdata; | ||
317 | |||
318 | list_for_each_entry(bdata, &bdata_list, list) | ||
319 | total_pages += free_all_bootmem_core(bdata); | ||
320 | |||
321 | return total_pages; | ||
316 | #endif | 322 | #endif |
317 | } | 323 | } |
318 | 324 | ||