Commit 80e89593 authored by Atsushi Nemoto's avatar Atsushi Nemoto Committed by Ralf Baechle

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

Signed-off-by: default avatarAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 7605b390
...@@ -377,7 +377,7 @@ void __init paging_init(void) ...@@ -377,7 +377,7 @@ void __init paging_init(void)
#ifdef CONFIG_FLATMEM #ifdef CONFIG_FLATMEM
free_area_init(zones_size); free_area_init(zones_size);
#else #else
pfn = 0; pfn = min_low_pfn;
for (i = 0; i < MAX_NR_ZONES; i++) for (i = 0; i < MAX_NR_ZONES; i++)
for (j = 0; j < zones_size[i]; j++, pfn++) for (j = 0; j < zones_size[i]; j++, pfn++)
if (!page_is_ram(pfn)) if (!page_is_ram(pfn))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment