From ac265523c11ef8eb69dd3a72e1046858cb759879 Mon Sep 17 00:00:00 2001 From: Steve Magnani Date: Mon, 18 May 2009 03:22:40 +0200 Subject: [PATCH] --- yaml --- r: 148606 b: refs/heads/master c: 5af90438023786e27178cc542f9a775594f8a126 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/microblaze/mm/init.c | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 9b9b74d07093..fe207bcacae4 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f2224ff07f345f3f9716071cc90ee50e29af7497 +refs/heads/master: 5af90438023786e27178cc542f9a775594f8a126 diff --git a/trunk/arch/microblaze/mm/init.c b/trunk/arch/microblaze/mm/init.c index 31ec053c1dd6..6ef5088a8d2a 100644 --- a/trunk/arch/microblaze/mm/init.c +++ b/trunk/arch/microblaze/mm/init.c @@ -44,16 +44,15 @@ static void __init paging_init(void) int i; unsigned long zones_size[MAX_NR_ZONES]; + /* Clean every zones */ + memset(zones_size, 0, sizeof(zones_size)); + /* * old: we can DMA to/from any address.put all page into ZONE_DMA * We use only ZONE_NORMAL */ zones_size[ZONE_NORMAL] = max_mapnr; - /* every other zones are empty */ - for (i = 1; i < MAX_NR_ZONES; i++) - zones_size[i] = 0; - free_area_init(zones_size); }