Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753338Ab1DXGEd (ORCPT ); Sun, 24 Apr 2011 02:04:33 -0400 Received: from mail-ww0-f44.google.com ([74.125.82.44]:54252 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752056Ab1DXGEb (ORCPT ); Sun, 24 Apr 2011 02:04:31 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=pNNaWT6yyd9dB7mB7Q7Apl6EJXDBz2Izh9I4aqUtQhQE/HaIzHijSjmvWe97sRLshw XFqfvEr+raUPmrITfagSVl/De53huS8DTQX/86f8f0tc77ziUvlwA+XPaD9IW5yNjH53 rpvz0gdiEW1KlMTeoqZ/tkrVIfXIyC4ny9Xb8= MIME-Version: 1.0 In-Reply-To: <4DB3AF8B.6020105@gmail.com> References: <1303317178.2587.30.camel@mulgrave.site> <20110421220351.9180.A69D9226@jp.fujitsu.com> <4DB3840F.3060503@gmail.com> <4DB3A09A.70308@gmail.com> <4DB3AF8B.6020105@gmail.com> From: KOSAKI Motohiro Date: Sun, 24 Apr 2011 15:04:10 +0900 Message-ID: Subject: Re: [patch] m68k, mm: set all online nodes in N_NORMAL_MEMORY To: Michael Schmitz Cc: David Rientjes , Geert Uytterhoeven , Andrew Morton , Roman Zippel , linux-m68k@vger.kernel.org, linux-kernel@vger.kernel.org, schwab@linux-m68k.org, "tg@mirbsd.de >> Thorsten Glaser" Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1434 Lines: 34 2011/4/24 Michael Schmitz : > Michael Schmitz wrote: >> >> Besides, your solution would set N_HIGH_MEMORY not N_NORMAL_MEMORY if I >> read free_area_init_nodes() right. Does that matter? > > check_for_regular_memory() does take care of that - so it would be all the > same in the end. Whether it's worth it for a handful of nodes at best I'm > unsure. I'll leave that for Geert to decide. check_for_regular_memory() doesn't. It is CONFIG_HIGHMEM specific. The trick is in node_status definition. N_NORMAL_MEMORY and N_HIGHMEMORY share the same value. then node_set_state(nid, N_HIGH_MEMORY) turn on both normal and highmem bitmask. -------------------------------------------------------------------- enum node_states { N_POSSIBLE, /* The node could become online at some point */ N_ONLINE, /* The node is online */ N_NORMAL_MEMORY, /* The node has regular memory */ #ifdef CONFIG_HIGHMEM N_HIGH_MEMORY, /* The node has regular or high memory */ #else N_HIGH_MEMORY = N_NORMAL_MEMORY, #endif N_CPU, /* The node has one or more cpus */ NR_NODE_STATES }; -- 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/