From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by e6.ny.us.ibm.com (8.12.11/8.12.11) with ESMTP id j1OHTJr9004925 for ; Thu, 24 Feb 2005 12:29:19 -0500 Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay04.pok.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id j1OHTJSt225518 for ; Thu, 24 Feb 2005 12:29:19 -0500 Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.12.11/8.12.11) with ESMTP id j1OHTJKR005426 for ; Thu, 24 Feb 2005 12:29:19 -0500 Subject: [PATCH 1/5] memset the i386 numa pgdats in arch code From: Dave Hansen Date: Thu, 24 Feb 2005 09:29:17 -0800 Message-Id: Sender: owner-linux-mm@kvack.org Return-Path: To: linux-mm@kvack.org Cc: colpatch@us.ibm.com, kravetz@us.ibm.com, mbligh@aracnet.com, anton@samba.org, Dave Hansen , ygoto@us.fujitsu.com List-ID: The next patch in this series will remove the arch-independent clearing of the pgdat's. This first patch removes the i386 dependency on that behavior. The new i386 function, remapped_pgdat_init() takes care of initializing the pgdats which are finally mapped after paging_init() is done. The zone_sizes_init() call has to occur after the pgdat clearing. zone_sizes_init() is currently called from the end of paging_init(), because that's the first place where the pgdats could have been zeroed. However, zone_sizes_init() really doesn't have anything to do with paging, and probably shouldn't be in paging_init(). Moving this call into setup_memory() allows the declaration of zone_sizes_init() to change files as well, which means a net removal of one #ifdef. It also provides a handy place to put the new function, far away from the paging code that it really has nothing to do with. Moving files required only using highend_pfn inside of the HIGHMEM ifdef, but this saves a line of code anyway. Fixes from: Yasunori Goto Signed-off-by: Dave Hansen --- sparse-dave/arch/i386/kernel/setup.c | 42 +++++++++++++++++++++++++++++++++++ sparse-dave/arch/i386/mm/discontig.c | 4 --- sparse-dave/arch/i386/mm/init.c | 26 --------------------- 3 files changed, 43 insertions(+), 29 deletions(-) diff -puN arch/i386/kernel/setup.c~A2.1-re-memset-i386-pgdats arch/i386/kernel/setup.c --- sparse/arch/i386/kernel/setup.c~A2.1-re-memset-i386-pgdats 2005-02-24 08:56:38.000000000 -0800 +++ sparse-dave/arch/i386/kernel/setup.c 2005-02-24 08:56:38.000000000 -0800 @@ -40,6 +40,7 @@ #include #include #include +#include #include