Skip to content

Commit

Permalink
mm/memory_hotplug: use pgdat_end_pfn() instead of open coding the same.
Browse files Browse the repository at this point in the history
Replace open coded pgdat_end_pfn() with helper function.

Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com>
Cc: David Hansen <dave@linux.vnet.ibm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
codyps authored and torvalds committed Feb 24, 2013
1 parent 64dd1b2 commit c1f1949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/memory_hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c1f1949

Please sign in to comment.