[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1225902223.12673.616.camel@nimitz>
Date: Wed, 05 Nov 2008 08:23:43 -0800
From: Dave Hansen <dave@...ux.vnet.ibm.com>
To: Nigel Cunningham <ncunningham@...a.org.au>
Cc: Matt Tolentino <matthew.e.tolentino@...el.com>,
linux-pm@...ts.osdl.org, Dave Hansen <haveblue@...ibm.com>,
linux-kernel@...r.kernel.org, linux-mm@...ck.org, pavel@...e.cz,
Mel Gorman <mel@...net.ie>, Andy Whitcroft <apw@...dowen.org>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [linux-pm] [PATCH] hibernation should work ok with memory
hotplug
On Wed, 2008-11-05 at 20:10 +1100, Nigel Cunningham wrote:
> In your example above, zone_start_pfn will be 1, won't it? If that's the
> case, I shouldn't need to subtract ARCH_PFN_OFFSET to get the right
> index within the zone and avoid the same wastage that ARCH_PFN_OFFSET
> avoids with mem_map.
Yeah, I don't think the first zone will ever start before
ARCH_PFN_OFFSET.
If the code just deals with starting at any random zone_start_pfn and
going to any other random zone_end_pfn without any waste, then it should
be fine in the presence of ARCH_PFN_OFFSET. The only trouble is if it
assumes memory to start at 0x0.
-- Dave
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists