X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=mm%2Fpage_alloc.c;h=401d104d2bb6e12c08e70700eebad915e72c7c2a;hb=17de50b7f71d176375e9d4d67ffce42482e5515f;hp=3cf3d05b6bd482767c71265ee3b9ad0d16ad9c7e;hpb=3a1a8acf690873f0ee2d8a648c2ec185f4294bd2;p=linux-2.6 diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 3cf3d05b6b..401d104d2b 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -3753,23 +3753,6 @@ unsigned long __init find_min_pfn_with_active_regions(void) return find_min_pfn_for_node(MAX_NUMNODES); } -/** - * find_max_pfn_with_active_regions - Find the maximum PFN registered - * - * It returns the maximum PFN based on information provided via - * add_active_range(). - */ -unsigned long __init find_max_pfn_with_active_regions(void) -{ - int i; - unsigned long max_pfn = 0; - - for (i = 0; i < nr_nodemap_entries; i++) - max_pfn = max(max_pfn, early_node_map[i].end_pfn); - - return max_pfn; -} - /* * early_calculate_totalpages() * Sum pages in active regions for movable zone.