From: Atsushi Nemoto Date: Tue, 20 Mar 2007 15:56:28 +0000 (+0900) Subject: [MIPS] SPARSEMEM: The first pfn of zone should be min_low_pfn, not 0. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=80e89593e5a574a572f4e45e157733b5ea5ddfdb;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [MIPS] SPARSEMEM: The first pfn of zone should be min_low_pfn, not 0. Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index f08ae71c46f..25abe91da4a 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))