[Top] [All Lists]

Re: [PATCH] do not count pages in holes with sparsemem

Subject: Re: [PATCH] do not count pages in holes with sparsemem
From: Atsushi Nemoto <>
Date: Thu, 06 Jul 2006 23:36:34 +0900 (JST)
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <>
On Thu, 06 Jul 2006 15:12:11 +0200, Franck Bui-Huu <> 
> Ok thinking more about it, some platforms may have physical memory
> that doesn't start at 0. MIPS doesn't support such platform though it
> should be fairly easy. In that case __pa should be defined as:
>       #define __pa(x) ((unsigned long) (x) - PAGE_OFFSET + 
> and use in your patch:
>       free_area_init_node(0, NODE_DATA(0), zones_size, ARCH_PFN_OFFSET, 
> zholes_size);
> So I would recommend to use ARCH_PFN_OFFSET.

Well, currently ARCH_PFN_OFFSET is defined in
asm-generic/memory_model.h only for FLATMEM case.  I think other
memory models do not need it because it is just a case that a first
hole begins at pfn 0.

Atsushi Nemoto

<Prev in Thread] Current Thread [Next in Thread>