diff options
Diffstat (limited to 'arch/ppc/mm/init.c')
-rw-r--r-- | arch/ppc/mm/init.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/ppc/mm/init.c b/arch/ppc/mm/init.c index 410200046af1..c374e53ae03a 100644 --- a/arch/ppc/mm/init.c +++ b/arch/ppc/mm/init.c | |||
@@ -374,11 +374,12 @@ void __init paging_init(void) | |||
374 | end_pfn = start_pfn + (total_memory >> PAGE_SHIFT); | 374 | end_pfn = start_pfn + (total_memory >> PAGE_SHIFT); |
375 | add_active_range(0, start_pfn, end_pfn); | 375 | add_active_range(0, start_pfn, end_pfn); |
376 | 376 | ||
377 | memset(max_zone_pfns, 0, sizeof(max_zone_pfns)); | ||
377 | #ifdef CONFIG_HIGHMEM | 378 | #ifdef CONFIG_HIGHMEM |
378 | max_zone_pfns[0] = total_lowmem >> PAGE_SHIFT; | 379 | max_zone_pfns[ZONE_DMA] = total_lowmem >> PAGE_SHIFT; |
379 | max_zone_pfns[1] = total_memory >> PAGE_SHIFT; | 380 | max_zone_pfns[ZONE_HIGHMEM] = total_memory >> PAGE_SHIFT; |
380 | #else | 381 | #else |
381 | max_zone_pfns[0] = total_memory >> PAGE_SHIFT; | 382 | max_zone_pfns[ZONE_DMA] = total_memory >> PAGE_SHIFT; |
382 | #endif /* CONFIG_HIGHMEM */ | 383 | #endif /* CONFIG_HIGHMEM */ |
383 | free_area_init_nodes(max_zone_pfns); | 384 | free_area_init_nodes(max_zone_pfns); |
384 | } | 385 | } |