aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorakpm@osdl.org <akpm@osdl.org>2005-04-16 18:23:57 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:23:57 -0400
commitd42ce812b8a32adddeee3a692005f82f95ff15a3 (patch)
tree41cd169ef17e4388189a0f1c46abe88375a7ddd5 /arch
parent7a228aaa879c119c9fb9b9d7e062ac13cb1a9079 (diff)
[PATCH] arm: add comment about max_low_pfn/max_pfn
) From: Russell King <rmk+lkml@arm.linux.org.uk> 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 <rmk@arm.linux.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mm/init.c3
1 files changed, 3 insertions, 0 deletions
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)
223 * This doesn't seem to be used by the Linux memory 223 * This doesn't seem to be used by the Linux memory
224 * manager any more. If we can get rid of it, we 224 * manager any more. If we can get rid of it, we
225 * also get rid of some of the stuff above as well. 225 * also get rid of some of the stuff above as well.
226 *
227 * Note: max_low_pfn and max_pfn reflect the number
228 * of _pages_ in the system, not the maximum PFN.
226 */ 229 */
227 max_low_pfn = memend_pfn - O_PFN_DOWN(PHYS_OFFSET); 230 max_low_pfn = memend_pfn - O_PFN_DOWN(PHYS_OFFSET);
228 max_pfn = memend_pfn - O_PFN_DOWN(PHYS_OFFSET); 231 max_pfn = memend_pfn - O_PFN_DOWN(PHYS_OFFSET);