From: akpm@osdl.org Date: Sat, 16 Apr 2005 22:23:57 +0000 (-0700) Subject: [PATCH] arm: add comment about max_low_pfn/max_pfn X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d42ce812b8a32adddeee3a692005f82f95ff15a3;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [PATCH] arm: add comment about max_low_pfn/max_pfn ) 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 Signed-off-by: Linus Torvalds --- diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index 41156c5370f7..72a2b8cee319 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c @@ -223,6 +223,9 @@ find_memend_and_nodes(struct meminfo *mi, struct node_info *np) * 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);