diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2020-06-03 18:05:54 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2020-06-03 18:05:54 +1000 |
commit | 4cc53ecb2323f92c3092d1caa5d527d5d39f93f8 (patch) | |
tree | 812e7e5c568dff3f53dba9d198fd592d7117aaa4 /arch/nios2 | |
parent | 781ef479089b0ab45cee6e0bdfe6f53a3cb6a24f (diff) | |
parent | 7b6e47f719269d3a0c282f44129c40f4234adff9 (diff) | |
download | linux-next-4cc53ecb2323f92c3092d1caa5d527d5d39f93f8.tar.gz |
Merge branch 'akpm-current/current'
Diffstat (limited to 'arch/nios2')
-rw-r--r-- | arch/nios2/mm/init.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/nios2/mm/init.c b/arch/nios2/mm/init.c index 2c609c2516b2..9afca77d10b1 100644 --- a/arch/nios2/mm/init.c +++ b/arch/nios2/mm/init.c @@ -46,17 +46,15 @@ pgd_t *pgd_current; */ void __init paging_init(void) { - unsigned long zones_size[MAX_NR_ZONES]; - - memset(zones_size, 0, sizeof(zones_size)); + unsigned long max_zone_pfn[MAX_NR_ZONES] = { 0 }; pagetable_init(); pgd_current = swapper_pg_dir; - zones_size[ZONE_NORMAL] = max_mapnr; + max_zone_pfn[ZONE_NORMAL] = max_mapnr; /* pass the memory from the bootmem allocator to the main allocator */ - free_area_init(zones_size); + free_area_init(max_zone_pfn); flush_dcache_range((unsigned long)empty_zero_page, (unsigned long)empty_zero_page + PAGE_SIZE); |