summaryrefslogtreecommitdiffstats
path: root/mm/sparse-vmemmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/sparse-vmemmap.c')
-rw-r--r--mm/sparse-vmemmap.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/mm/sparse-vmemmap.c b/mm/sparse-vmemmap.c
index cd15f3d252c3..8301293331a2 100644
--- a/mm/sparse-vmemmap.c
+++ b/mm/sparse-vmemmap.c
@@ -261,24 +261,3 @@ struct page * __meminit sparse_mem_map_populate(unsigned long pnum, int nid,
261 261
262 return map; 262 return map;
263} 263}
264
265void __init sparse_mem_maps_populate_node(struct page **map_map,
266 unsigned long pnum_begin,
267 unsigned long pnum_end,
268 unsigned long map_count, int nodeid)
269{
270 unsigned long pnum;
271 int nr_consumed_maps = 0;
272
273 for (pnum = pnum_begin; pnum < pnum_end; pnum++) {
274 if (!present_section_nr(pnum))
275 continue;
276
277 map_map[nr_consumed_maps] =
278 sparse_mem_map_populate(pnum, nodeid, NULL);
279 if (map_map[nr_consumed_maps++])
280 continue;
281 pr_err("%s: sparsemem memory map backing failed some memory will not be available\n",
282 __func__);
283 }
284}