powerpc: Fix pfn_valid() when memory starts at a non-zero address
authorScott Wood <scottwood@freescale.com>
Thu, 27 Jan 2011 10:31:38 +0000 (10:31 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 7 Feb 2011 01:47:56 +0000 (12:47 +1100)
commit81c386cc7f4c22b81ba94709d2d58754282ea05e
treeec6f38c51a46e61480b3e53eb1e6ae01bd25c188
parent8dbdea8444d303a772bceb1ba963f0e3273bfc5e
powerpc: Fix pfn_valid() when memory starts at a non-zero address

max_mapnr is a pfn, not an index innto mem_map[].  So don't add
ARCH_PFN_OFFSET a second time.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/page.h