]> git.karo-electronics.de Git - linux-beck.git/blobdiff - mm/page_alloc.c
x86, mm: use add_highpages_with_active_regions() for high pages init v2
[linux-beck.git] / mm / page_alloc.c
index d80e1868e570e5e204812c91025f0542c5f91b3d..41c6e3aa059f885ee2f36b59314a4e750e620b81 100644 (file)
@@ -2929,6 +2929,14 @@ void __init free_bootmem_with_active_regions(int nid,
        }
 }
 
+void __init work_with_active_regions(int nid, work_fn_t work_fn, void *data)
+{
+       int i;
+
+       for_each_active_range_index_in_nid(i, nid)
+               work_fn(early_node_map[i].start_pfn, early_node_map[i].end_pfn,
+                       data);
+}
 /**
  * sparse_memory_present_with_active_regions - Call memory_present for each active range
  * @nid: The node to call memory_present for. If MAX_NUMNODES, all nodes will be used.