From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <20080325023121.727305000@polaris-admin.engr.sgi.com> References: <20080325023120.859257000@polaris-admin.engr.sgi.com> Date: Mon, 24 Mar 2008 19:31:25 -0700 From: Mike Travis Subject: [PATCH 05/12] init: move large array from stack to _initdata section Content-Disposition: inline; filename=numa_initmem_init Sender: owner-linux-mm@kvack.org Return-Path: To: Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" List-ID: Move large array "struct bootnode nodes" from stack to _initdata section. Based on linux-2.6.25-rc5-mm1 Cc: Thomas Gleixner Cc: Ingo Molnar Cc: H. Peter Anvin Signed-off-by: Mike Travis --- arch/x86/mm/numa_64.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- linux-2.6.25-rc5.orig/arch/x86/mm/numa_64.c +++ linux-2.6.25-rc5/arch/x86/mm/numa_64.c @@ -381,9 +381,10 @@ static int __init split_nodes_by_size(st * Sets up the system RAM area from start_pfn to end_pfn according to the * numa=fake command-line option. */ +static struct bootnode nodes[MAX_NUMNODES] __initdata; + static int __init numa_emulation(unsigned long start_pfn, unsigned long end_pfn) { - struct bootnode nodes[MAX_NUMNODES]; u64 size, addr = start_pfn << PAGE_SHIFT; u64 max_addr = end_pfn << PAGE_SHIFT; int num_nodes = 0, num = 0, coeff_flag, coeff = -1, i; -- -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org