mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
mm/memblock: use existing interface to set nid
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]>
This commit is contained in:
parent
45cac65b0f
commit
e9d24ad30f
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue