Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751563AbWBQPxP (ORCPT ); Fri, 17 Feb 2006 10:53:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751564AbWBQPxO (ORCPT ); Fri, 17 Feb 2006 10:53:14 -0500 Received: from e1.ny.us.ibm.com ([32.97.182.141]:29099 "EHLO e1.ny.us.ibm.com") by vger.kernel.org with ESMTP id S1751556AbWBQPxN (ORCPT ); Fri, 17 Feb 2006 10:53:13 -0500 Subject: Re: [PATCH: 004/012] Memory hotplug for new nodes v.2. (pgdat alloc caller for ia64) From: Dave Hansen To: Yasunori Goto Cc: Andrew Morton , "Luck, Tony" , Andi Kleen , "Tolentino, Matthew E" , Joel Schopp , linux-ia64@vger.kernel.org, Linux Kernel ML , x86-64 Discuss In-Reply-To: <20060217211436.4070.Y-GOTO@jp.fujitsu.com> References: <20060217211436.4070.Y-GOTO@jp.fujitsu.com> Content-Type: text/plain Date: Fri, 17 Feb 2006 07:52:37 -0800 Message-Id: <1140191557.21383.79.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 855 Lines: 25 On Fri, 2006-02-17 at 22:28 +0900, Yasunori Goto wrote: > > + if (node < 0) > + node = 0; /* pxm is undefined in DSDT. > + This might be non NUMA case */ > + > + if (!node_online(node)){ > + ret = new_pgdat_init(node, start_pfn, nr_pages); > + if (ret) > + return ret; > + > + new_pgdat = 1; > + } > + pgdat = NODE_DATA(node); Now that I've seen this exact code copy-and-pasted into two different architectures, it begs the question: do we need a common function here? -- Dave - 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/