summaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>2007-03-21 00:56:28 +0900
committerRalf Baechle <ralf@linux-mips.org>2007-03-24 17:01:49 +0000
commit80e89593e5a574a572f4e45e157733b5ea5ddfdb (patch)
treea2de8ebec736ae7e7a9dd997fd2b0ce38c23f9d0 /arch/mips
parent7605b3906192a171e651076325b1ed1d5ea57ec9 (diff)
downloadop-kernel-dev-80e89593e5a574a572f4e45e157733b5ea5ddfdb.zip
op-kernel-dev-80e89593e5a574a572f4e45e157733b5ea5ddfdb.tar.gz
[MIPS] SPARSEMEM: The first pfn of zone should be min_low_pfn, not 0.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/mm/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c
index f08ae71c..25abe91 100644
--- a/arch/mips/mm/init.c
+++ b/arch/mips/mm/init.c
@@ -377,7 +377,7 @@ void __init paging_init(void)
#ifdef CONFIG_FLATMEM
free_area_init(zones_size);
#else
- pfn = 0;
+ pfn = min_low_pfn;
for (i = 0; i < MAX_NR_ZONES; i++)
for (j = 0; j < zones_size[i]; j++, pfn++)
if (!page_is_ram(pfn))
OpenPOWER on IntegriCloud