diff options
author | Hanjun Guo <hanjun.guo@linaro.org> | 2016-05-25 01:35:36 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-05-30 15:27:07 +0300 |
commit | 8ccbbdaa2bc06f7b11fec7f44bf2501786a189ba (patch) | |
tree | 04da55bf0ee0278fcb507859ad7a644a4233c151 /drivers/of/of_numa.c | |
parent | 6525afdf53b39968f1a109b1ce1607ca6c98d300 (diff) | |
download | linux-8ccbbdaa2bc06f7b11fec7f44bf2501786a189ba.tar.xz |
arm64, NUMA: rework numa_add_memblk()
Rework numa_add_memblk() to update the parameter "u64 size" to "u64
end", this will make it consistent with x86 and simplifies the arm64
ACPI NUMA code to be added later.
Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Robert Richter <rrichter@cavium.com>
Signed-off-by: David Daney <david.daney@cavium.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/of/of_numa.c')
-rw-r--r-- | drivers/of/of_numa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/of/of_numa.c b/drivers/of/of_numa.c index 0f2784bc1874..ed5a097f0801 100644 --- a/drivers/of/of_numa.c +++ b/drivers/of/of_numa.c @@ -91,8 +91,8 @@ static int __init of_numa_parse_memory_nodes(void) pr_debug("NUMA: base = %llx len = %llx, node = %u\n", rsrc.start, rsrc.end - rsrc.start + 1, nid); - r = numa_add_memblk(nid, rsrc.start, - rsrc.end - rsrc.start + 1); + + r = numa_add_memblk(nid, rsrc.start, rsrc.end + 1); if (r) break; } |