diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/page_alloc.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index a8c003e7b3d5..8246e834b2f0 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -2294,19 +2294,6 @@ unsigned long __init zone_absent_pages_in_node(int nid, | |||
2294 | return __absent_pages_in_range(nid, zone_start_pfn, zone_end_pfn); | 2294 | return __absent_pages_in_range(nid, zone_start_pfn, zone_end_pfn); |
2295 | } | 2295 | } |
2296 | 2296 | ||
2297 | /* Return the zone index a PFN is in */ | ||
2298 | int memmap_zone_idx(struct page *lmem_map) | ||
2299 | { | ||
2300 | int i; | ||
2301 | unsigned long phys_addr = virt_to_phys(lmem_map); | ||
2302 | unsigned long pfn = phys_addr >> PAGE_SHIFT; | ||
2303 | |||
2304 | for (i = 0; i < MAX_NR_ZONES; i++) | ||
2305 | if (pfn < arch_zone_highest_possible_pfn[i]) | ||
2306 | break; | ||
2307 | |||
2308 | return i; | ||
2309 | } | ||
2310 | #else | 2297 | #else |
2311 | static inline unsigned long zone_spanned_pages_in_node(int nid, | 2298 | static inline unsigned long zone_spanned_pages_in_node(int nid, |
2312 | unsigned long zone_type, | 2299 | unsigned long zone_type, |
@@ -2325,10 +2312,6 @@ static inline unsigned long zone_absent_pages_in_node(int nid, | |||
2325 | return zholes_size[zone_type]; | 2312 | return zholes_size[zone_type]; |
2326 | } | 2313 | } |
2327 | 2314 | ||
2328 | static inline int memmap_zone_idx(struct page *lmem_map) | ||
2329 | { | ||
2330 | return MAX_NR_ZONES; | ||
2331 | } | ||
2332 | #endif | 2315 | #endif |
2333 | 2316 | ||
2334 | static void __init calculate_node_totalpages(struct pglist_data *pgdat, | 2317 | static void __init calculate_node_totalpages(struct pglist_data *pgdat, |