Skip to content

Commit

Permalink
mm/memblock: use existing interface to set nid
Browse files Browse the repository at this point in the history
Use the existing interface function to set the NUMA node ID (NID) for the
regions, either memory or reserved region.

Signed-off-by: Wanpeng Li <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: KAMEZAWA Hiroyuki <[email protected]>
Cc: Minchan Kim <[email protected]>
Cc: Gavin Shan <[email protected]>
Cc: Yinghai Lu <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Wanpeng Li authored and torvalds committed Oct 9, 2012
1 parent 45cac65 commit e9d24ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/memblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ int __init_memblock memblock_set_node(phys_addr_t base, phys_addr_t size,
return ret;

for (i = start_rgn; i < end_rgn; i++)
type->regions[i].nid = nid;
memblock_set_region_node(&type->regions[i], nid);

memblock_merge_regions(type);
return 0;
Expand Down

0 comments on commit e9d24ad

Please sign in to comment.