From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 9 Mar 2007 13:27:36 -0800 (PST) From: David Rientjes Subject: Re: [RFC] [PATCH] Power Managed memory base enabling In-Reply-To: <20070309205344.GA16777@linux.intel.com> Message-ID: 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 Sender: owner-linux-mm@kvack.org Return-Path: To: Mark Gross 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, 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) ? > + 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