x86_64/mm: check and print vmemmap allocation continuous
[linux-2.6-block.git] / mm / sparse.c
index 458109b99e61ff99326dd6b92e457f633aebe5b3..7e9191381f86d0635e9ec68cda34cff6313ea859 100644 (file)
@@ -295,6 +295,9 @@ struct page __init *sparse_early_mem_map_alloc(unsigned long pnum)
        return NULL;
 }
 
+void __attribute__((weak)) __meminit vmemmap_populate_print_last(void)
+{
+}
 /*
  * Allocate the accumulated non-linear sections, allocate a mem_map
  * for each and record the physical to section mapping.
@@ -345,6 +348,8 @@ void __init sparse_init(void)
                                                                usemap);
        }
 
+       vmemmap_populate_print_last();
+
        free_bootmem(__pa(usemap_map), size);
 }