Skip to content

Commit

Permalink
[MIPS] SPARSEMEM: The first pfn of zone should be min_low_pfn, not 0.
Browse files Browse the repository at this point in the history
Signed-off-by: Atsushi Nemoto <[email protected]>
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
atsushi-nemoto authored and ralfbaechle committed Mar 24, 2007
1 parent 7605b39 commit 80e8959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 80e8959

Please sign in to comment.