Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mm/mm_init.c: use memblock_region_memory_base_pfn() to get startpfn

Just like what it does in "if (mirrored_kernelcore)", we should use
memblock_region_memory_base_pfn() to get the startpfn.

Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Link: https://lore.kernel.org/r/20240525023040.13509-1-richard.weiyang@gmail.com
Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>

authored by

Wei Yang and committed by
Mike Rapoport (IBM)
3be381d1 b73f6b98

+1 -1
+1 -1
mm/mm_init.c
··· 363 363 364 364 nid = memblock_get_region_node(r); 365 365 366 - usable_startpfn = PFN_DOWN(r->base); 366 + usable_startpfn = memblock_region_memory_base_pfn(r); 367 367 zone_movable_pfn[nid] = zone_movable_pfn[nid] ? 368 368 min(usable_startpfn, zone_movable_pfn[nid]) : 369 369 usable_startpfn;