diff options
author | Ganapatrao Kulkarni <gkulkarni@caviumnetworks.com> | 2016-04-09 00:50:27 +0200 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2016-04-15 19:06:09 +0200 |
commit | 1a2db300348b799479d2d22b84d51b27ad0458c7 (patch) | |
tree | c9e3329f00575143dae72e14725b9e48161e34d7 /arch/arm64/kernel/setup.c | |
parent | arm64: Move unflatten_device_tree() call earlier. (diff) | |
download | linux-1a2db300348b799479d2d22b84d51b27ad0458c7.tar.xz linux-1a2db300348b799479d2d22b84d51b27ad0458c7.zip |
arm64, numa: Add NUMA support for arm64 platforms.
Attempt to get the memory and CPU NUMA node via of_numa. If that
fails, default the dummy NUMA node and map all memory and CPUs to node
0.
Tested-by: Shannon Zhao <shannon.zhao@linaro.org>
Reviewed-by: Robert Richter <rrichter@cavium.com>
Signed-off-by: Ganapatrao Kulkarni <gkulkarni@caviumnetworks.com>
Signed-off-by: David Daney <david.daney@cavium.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/kernel/setup.c')
-rw-r--r-- | arch/arm64/kernel/setup.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c index 432bc7f1dc45..65f515949baa 100644 --- a/arch/arm64/kernel/setup.c +++ b/arch/arm64/kernel/setup.c @@ -53,6 +53,7 @@ #include <asm/cpufeature.h> #include <asm/cpu_ops.h> #include <asm/kasan.h> +#include <asm/numa.h> #include <asm/sections.h> #include <asm/setup.h> #include <asm/smp_plat.h> @@ -319,6 +320,9 @@ static int __init topology_init(void) { int i; + for_each_online_node(i) + register_one_node(i); + for_each_possible_cpu(i) { struct cpu *cpu = &per_cpu(cpu_data.cpu, i); cpu->hotpluggable = 1; |