MIPS: Fix CONFIG_FLATMEM version of pfn_valid()
authorRalf Baechle <ralf@linux-mips.org>
Fri, 3 Jul 2009 06:11:15 +0000 (07:11 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 3 Jul 2009 14:45:29 +0000 (15:45 +0100)
commitbaf922780251d12bc1c24c83df60c4c278abb745
treed18b24f58763d7b13dd37e4d9c70b2b99e845b18
parent01a6221a6a51ec47b9ae3ed42c396f98dd488c7e
MIPS: Fix CONFIG_FLATMEM version of pfn_valid()

For systems which do not define PHYS_OFFSET as 0 pfn_valid() may falsely
have returned 0 on most configurations.  Bug introduced by commit
752fbeb2e3555c0d236e992f1195fd7ce30e728d (linux-mips.org) rsp.
6f284a2ce7b8bc49cb8455b1763357897a899abb (kernel.org) titled "[MIPS]
FLATMEM: introduce PHYS_OFFSET."

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/page.h