diff options
author | Christoph Lameter <clameter@sgi.com> | 2006-09-26 02:31:10 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-26 11:48:46 -0400 |
commit | f06a96844a577c43249fce25809a4fae07407f46 (patch) | |
tree | 57fd0fdbfbcce081d27d5595de2886b748b8bb49 /arch/frv/mm/init.c | |
parent | 776ed98b842ee8551793f842fe028c8091f3633e (diff) |
[PATCH] reduce MAX_NR_ZONES: fix MAX_NR_ZONES array initializations
Fix array initialization in lots of arches
The number of zones may now be reduced from 4 to 2 for many arches. Fix the
array initialization for the zones array for all architectures so that it is
not initializing a fixed number of elements.
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/frv/mm/init.c')
-rw-r--r-- | arch/frv/mm/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/frv/mm/init.c b/arch/frv/mm/init.c index b5b4286f9dd4..3f3a0ed3539b 100644 --- a/arch/frv/mm/init.c +++ b/arch/frv/mm/init.c | |||
@@ -98,7 +98,7 @@ void show_mem(void) | |||
98 | */ | 98 | */ |
99 | void __init paging_init(void) | 99 | void __init paging_init(void) |
100 | { | 100 | { |
101 | unsigned long zones_size[MAX_NR_ZONES] = {0, 0, 0}; | 101 | unsigned long zones_size[MAX_NR_ZONES] = {0, }; |
102 | 102 | ||
103 | /* allocate some pages for kernel housekeeping tasks */ | 103 | /* allocate some pages for kernel housekeeping tasks */ |
104 | empty_bad_page_table = (unsigned long) alloc_bootmem_pages(PAGE_SIZE); | 104 | empty_bad_page_table = (unsigned long) alloc_bootmem_pages(PAGE_SIZE); |