Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262184AbVDMDPS (ORCPT ); Tue, 12 Apr 2005 23:15:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262634AbVDMDMU (ORCPT ); Tue, 12 Apr 2005 23:12:20 -0400 Received: from wproxy.gmail.com ([64.233.184.201]:23452 "EHLO wproxy.gmail.com") by vger.kernel.org with ESMTP id S262184AbVDMDKg convert rfc822-to-8bit (ORCPT ); Tue, 12 Apr 2005 23:10:36 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=PJBj1CzRSaa3FJ1Hral2FYbre7dooVT5lDvnvvsSdxrAZBSuk7KOpYy6zwQIwXMxUtrTRDvrpZRXlz3PZJwYB28OdGwN1QX5n5WrbRnA4GqoVk8KcGCHk/MLOkg5Q4IVpg/L7Pwr+7OfpfuE5GQUUoyOPak3XLtiGJwGD3eEP14= Message-ID: <2cd57c900504122010430af248@mail.gmail.com> Date: Wed, 13 Apr 2005 11:10:35 +0800 From: Coywolf Qi Hunt Reply-To: Coywolf Qi Hunt To: "akpm@osdl.org" Subject: Re: [patch 006/198] arm: add comment about max_low_pfn/max_pfn Cc: torvalds@osdl.org, linux-kernel@vger.kernel.org, rmk+lkml@arm.linux.org.uk, rmk@arm.linux.org.uk In-Reply-To: <200504121030.j3CAUie5005135@shell0.pdx.osdl.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Content-Disposition: inline References: <200504121030.j3CAUie5005135@shell0.pdx.osdl.net> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1607 Lines: 41 I told rmk about this long time ago. On 4/12/05, akpm@osdl.org wrote: > > From: Russell King > > Oddly, max_low_pfn/max_pfn end up being the number of pages in the system, > rather than the maximum PFN on ARM. This doesn't seem to cause any problems, > so just add a note about it. > > Signed-off-by: Russell King > Signed-off-by: Andrew Morton > --- > > 25-akpm/arch/arm/mm/init.c | 3 +++ > 1 files changed, 3 insertions(+) > > diff -puN arch/arm/mm/init.c~arm-add-comment-about-max_low_pfn-max_pfn arch/arm/mm/init.c > --- 25/arch/arm/mm/init.c~arm-add-comment-about-max_low_pfn-max_pfn 2005-04-12 03:21:04.967381744 -0700 > +++ 25-akpm/arch/arm/mm/init.c 2005-04-12 03:21:04.971381136 -0700 > @@ -223,6 +223,9 @@ find_memend_and_nodes(struct meminfo *mi > * This doesn't seem to be used by the Linux memory > * manager any more. If we can get rid of it, we > * also get rid of some of the stuff above as well. > + * > + * Note: max_low_pfn and max_pfn reflect the number > + * of _pages_ in the system, not the maximum PFN. > */ > max_low_pfn = memend_pfn - O_PFN_DOWN(PHYS_OFFSET); > max_pfn = memend_pfn - O_PFN_DOWN(PHYS_OFFSET); > _ -- Coywolf Qi Hunt http://sosdg.org/~coywolf/ - 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/