diff options
author | Tang Chen <tangchen@cn.fujitsu.com> | 2014-01-21 18:49:26 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-21 19:19:44 -0500 |
commit | e7e8de5918dd6a07cbddae559600d7765ad6a56e (patch) | |
tree | e0db7a05cdf156fc3f5a6312ce6629866f8ac47e /mm/memblock.c | |
parent | 66b16edf9eafc3291cabb2253d0f342a847656b7 (diff) |
memblock: make memblock_set_node() support different memblock_type
[sfr@canb.auug.org.au: fix powerpc build]
Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
Reviewed-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: "Rafael J . Wysocki" <rjw@sisk.pl>
Cc: Chen Tang <imtangchen@gmail.com>
Cc: Gong Chen <gong.chen@linux.intel.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Jiang Liu <jiang.liu@huawei.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Lai Jiangshan <laijs@cn.fujitsu.com>
Cc: Larry Woodman <lwoodman@redhat.com>
Cc: Len Brown <lenb@kernel.org>
Cc: Liu Jiang <jiang.liu@huawei.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Michal Nazarewicz <mina86@mina86.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Taku Izumi <izumi.taku@jp.fujitsu.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Thomas Renninger <trenn@suse.de>
Cc: Toshi Kani <toshi.kani@hp.com>
Cc: Vasilis Liaskovitis <vasilis.liaskovitis@profitbricks.com>
Cc: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Cc: Wen Congyang <wency@cn.fujitsu.com>
Cc: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Cc: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memblock.c')
-rw-r--r-- | mm/memblock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/memblock.c b/mm/memblock.c index 2121ec4c7fa0..d5681008dce1 100644 --- a/mm/memblock.c +++ b/mm/memblock.c | |||
@@ -911,18 +911,18 @@ void __init_memblock __next_mem_pfn_range(int *idx, int nid, | |||
911 | * memblock_set_node - set node ID on memblock regions | 911 | * memblock_set_node - set node ID on memblock regions |
912 | * @base: base of area to set node ID for | 912 | * @base: base of area to set node ID for |
913 | * @size: size of area to set node ID for | 913 | * @size: size of area to set node ID for |
914 | * @type: memblock type to set node ID for | ||
914 | * @nid: node ID to set | 915 | * @nid: node ID to set |
915 | * | 916 | * |
916 | * Set the nid of memblock memory regions in [@base,@base+@size) to @nid. | 917 | * Set the nid of memblock @type regions in [@base,@base+@size) to @nid. |
917 | * Regions which cross the area boundaries are split as necessary. | 918 | * Regions which cross the area boundaries are split as necessary. |
918 | * | 919 | * |
919 | * RETURNS: | 920 | * RETURNS: |
920 | * 0 on success, -errno on failure. | 921 | * 0 on success, -errno on failure. |
921 | */ | 922 | */ |
922 | int __init_memblock memblock_set_node(phys_addr_t base, phys_addr_t size, | 923 | int __init_memblock memblock_set_node(phys_addr_t base, phys_addr_t size, |
923 | int nid) | 924 | struct memblock_type *type, int nid) |
924 | { | 925 | { |
925 | struct memblock_type *type = &memblock.memory; | ||
926 | int start_rgn, end_rgn; | 926 | int start_rgn, end_rgn; |
927 | int i, ret; | 927 | int i, ret; |
928 | 928 | ||