Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

akpm@osdl.org and committed by
Linus Torvalds
d42ce812 7a228aaa

+3
+3
arch/arm/mm/init.c
··· 223 223 * This doesn't seem to be used by the Linux memory 224 224 * manager any more. If we can get rid of it, we 225 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 230 max_low_pfn = memend_pfn - O_PFN_DOWN(PHYS_OFFSET); 228 231 max_pfn = memend_pfn - O_PFN_DOWN(PHYS_OFFSET);