git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] mm: use symbolic names instead of indices for zone initialisation
[sfrench/cifs-2.6.git]
/
arch
/
ppc
/
mm
/
init.c
diff --git
a/arch/ppc/mm/init.c
b/arch/ppc/mm/init.c
index 410200046af120236e44fb35d656e57f65ceb0da..c374e53ae03a0971654d26b5670f0e670b65cf40 100644
(file)
--- a/
arch/ppc/mm/init.c
+++ b/
arch/ppc/mm/init.c
@@
-374,11
+374,12
@@
void __init paging_init(void)
end_pfn = start_pfn + (total_memory >> PAGE_SHIFT);
add_active_range(0, start_pfn, end_pfn);
end_pfn = start_pfn + (total_memory >> PAGE_SHIFT);
add_active_range(0, start_pfn, end_pfn);
+ memset(max_zone_pfns, 0, sizeof(max_zone_pfns));
#ifdef CONFIG_HIGHMEM
#ifdef CONFIG_HIGHMEM
- max_zone_pfns[
0
] = total_lowmem >> PAGE_SHIFT;
- max_zone_pfns[
1
] = total_memory >> PAGE_SHIFT;
+ max_zone_pfns[
ZONE_DMA
] = total_lowmem >> PAGE_SHIFT;
+ max_zone_pfns[
ZONE_HIGHMEM
] = total_memory >> PAGE_SHIFT;
#else
#else
- max_zone_pfns[
0
] = total_memory >> PAGE_SHIFT;
+ max_zone_pfns[
ZONE_DMA
] = total_memory >> PAGE_SHIFT;
#endif /* CONFIG_HIGHMEM */
free_area_init_nodes(max_zone_pfns);
}
#endif /* CONFIG_HIGHMEM */
free_area_init_nodes(max_zone_pfns);
}