Skip to content

Commit 3be381d

Browse files
RichardWeiYangrppt
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mike Rapoport (IBM) <[email protected]>
1 parent b73f6b9 commit 3be381d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/mm_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ static void __init find_zone_movable_pfns_for_nodes(void)
363363

364364
nid = memblock_get_region_node(r);
365365

366-
usable_startpfn = PFN_DOWN(r->base);
366+
usable_startpfn = memblock_region_memory_base_pfn(r);
367367
zone_movable_pfn[nid] = zone_movable_pfn[nid] ?
368368
min(usable_startpfn, zone_movable_pfn[nid]) :
369369
usable_startpfn;

0 commit comments

Comments
 (0)