projects/linux·commit 80e89593

[MIPS] SPARSEMEM: The first pfn of zone should be min_low_pfn, not 0.

80e89593 · Atsushi Nemoto <[email protected]> · 2007-03-21 00:56:28 +09:00

Signed-off-by: Atsushi Nemoto <[email protected]>
Signed-off-by: Ralf Baechle <[email protected]>
Commit
80e89593e5a574a572f4e45e157733b5ea5ddfdb
Parents
7605b390

Changes

1 files changed · +1 −1

FileStatusAddDelContent
arch/mips/mm/init.cmodified+1−1View file

arch/mips/mm/init.c

View file
diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c
index f08ae71..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))