diff options
author | Atsushi Nemoto <anemo@mba.ocn.ne.jp> | 2007-03-20 11:56:28 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-03-24 13:01:49 -0400 |
commit | 80e89593e5a574a572f4e45e157733b5ea5ddfdb (patch) | |
tree | a2de8ebec736ae7e7a9dd997fd2b0ce38c23f9d0 | |
parent | 7605b3906192a171e651076325b1ed1d5ea57ec9 (diff) |
[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>
-rw-r--r-- | arch/mips/mm/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index f08ae71c46ff..25abe91da4ac 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c | |||
@@ -377,7 +377,7 @@ void __init paging_init(void) | |||
377 | #ifdef CONFIG_FLATMEM | 377 | #ifdef CONFIG_FLATMEM |
378 | free_area_init(zones_size); | 378 | free_area_init(zones_size); |
379 | #else | 379 | #else |
380 | pfn = 0; | 380 | pfn = min_low_pfn; |
381 | for (i = 0; i < MAX_NR_ZONES; i++) | 381 | for (i = 0; i < MAX_NR_ZONES; i++) |
382 | for (j = 0; j < zones_size[i]; j++, pfn++) | 382 | for (j = 0; j < zones_size[i]; j++, pfn++) |
383 | if (!page_is_ram(pfn)) | 383 | if (!page_is_ram(pfn)) |