Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754853Ab3DLBOs (ORCPT ); Thu, 11 Apr 2013 21:14:48 -0400 Received: from e8.ny.us.ibm.com ([32.97.182.138]:49782 "EHLO e8.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754688Ab3DLBOm (ORCPT ); Thu, 11 Apr 2013 21:14:42 -0400 From: Cody P Schafer To: Andrew Morton Cc: Mel Gorman , Linux MM , LKML , Cody P Schafer , Simon Jeons Subject: [RFC PATCH v2 18/25] init/main: call memlayout_global_init() in start_kernel(). Date: Thu, 11 Apr 2013 18:13:50 -0700 Message-Id: <1365729237-29711-19-git-send-email-cody@linux.vnet.ibm.com> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <1365729237-29711-1-git-send-email-cody@linux.vnet.ibm.com> References: <1365729237-29711-1-git-send-email-cody@linux.vnet.ibm.com> X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13041201-9360-0000-0000-000011B4F90B Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1172 Lines: 39 memlayout_global_init() initializes the first memlayout, which is assumed to match the initial page-flag nid settings. This is done in start_kernel() as the initdata used to populate the memlayout is purged from memory early in the boot process (XXX: When?). Signed-off-by: Cody P Schafer --- init/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init/main.c b/init/main.c index 63534a1..a1c2094 100644 --- a/init/main.c +++ b/init/main.c @@ -72,6 +72,7 @@ #include #include #include +#include #include #include @@ -618,6 +619,7 @@ asmlinkage void __init start_kernel(void) security_init(); dbg_late_init(); vfs_caches_init(totalram_pages); + memlayout_global_init(); signals_init(); /* rootfs populating might need page-writeback */ page_writeback_init(); -- 1.8.2.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/