mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
mm/memory_hotplug: use pgdat_end_pfn() instead of open coding the same.
Replace open coded pgdat_end_pfn() with helper function. Signed-off-by: Cody P Schafer <[email protected]> Cc: David Hansen <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Mel Gorman <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
64dd1b29bf
commit
c1f1949527
1 changed files with 1 additions and 1 deletions
|
|
@ -218,7 +218,7 @@ void register_page_bootmem_info_node(struct pglist_data *pgdat)
|
|||
}
|
||||
|
||||
pfn = pgdat->node_start_pfn;
|
||||
end_pfn = pfn + pgdat->node_spanned_pages;
|
||||
end_pfn = pgdat_end_pfn(pgdat);
|
||||
|
||||
/* register_section info */
|
||||
for (; pfn < end_pfn; pfn += PAGES_PER_SECTION) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue