From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 9 Mar 2007 13:26:28 -0800 From: Mark Gross Subject: Re: [RFC] [PATCH] Power Managed memory base enabling Message-ID: <20070309212628.GA18223@linux.intel.com> Reply-To: mgross@linux.intel.com References: <20070305181826.GA21515@linux.intel.com> <20070306164722.GB22725@linux.intel.com> <20070309205344.GA16777@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org Return-Path: To: David Rientjes Cc: linux-mm@kvack.org, linux-pm@lists.osdl.org, Linus Torvalds , Andrew Morton , mark.gross@intel.com, neelam.chandwani@intel.com List-ID: On Fri, Mar 09, 2007 at 01:27:36PM -0800, David Rientjes wrote: > On Fri, 9 Mar 2007, Mark Gross wrote: > > > +int __nearest_non_pm_node(int nid) > > +{ > > + int i, dist, closest, temp; > > + > > + if (!__power_managed_node(nid)) > > + return nid; > > + dist = closest= 255; > > + for_each_node(i) { > > Shouldn't this be for_each_online_node(i) ? yes. thanks, --mgross > > > + if (__power_managed_node(i)) > > + continue; > > + > > + if (i != nid) { > > + temp = __node_distance(nid, i ); > > + if (temp < dist) { > > + closest = i; > > + dist = temp; > > + } > > + } > > + } > > + BUG_ON(closest == 255); > > + return closest; > > +} -- 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