aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/mm
diff options
context:
space:
mode:
authorZhen Lei <thunder.leizhen@huawei.com>2016-09-01 02:54:56 -0400
committerWill Deacon <will.deacon@arm.com>2016-09-09 09:59:08 -0400
commit794224ea565c439ca624a3760ac220928463ea17 (patch)
tree07e048febf683529c678f7cc488d2f388b06ee26 /arch/arm64/mm
parent9787ed6e5cee7a62320f3014eb5e7b373502c292 (diff)
arm64/numa: avoid inconsistent information to be printed
numa_init may return error because of numa configuration error. So "No NUMA configuration found" is inaccurate. In fact, specific configuration error information should be immediately printed by the testing branch. Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/mm')
-rw-r--r--arch/arm64/mm/numa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm64/mm/numa.c b/arch/arm64/mm/numa.c
index 5bb15eab6f00..d97c6e246fb2 100644
--- a/arch/arm64/mm/numa.c
+++ b/arch/arm64/mm/numa.c
@@ -335,8 +335,10 @@ static int __init numa_init(int (*init_func)(void))
335 if (ret < 0) 335 if (ret < 0)
336 return ret; 336 return ret;
337 337
338 if (nodes_empty(numa_nodes_parsed)) 338 if (nodes_empty(numa_nodes_parsed)) {
339 pr_info("No NUMA configuration found\n");
339 return -EINVAL; 340 return -EINVAL;
341 }
340 342
341 ret = numa_register_nodes(); 343 ret = numa_register_nodes();
342 if (ret < 0) 344 if (ret < 0)
@@ -367,8 +369,6 @@ static int __init dummy_numa_init(void)
367 369
368 if (numa_off) 370 if (numa_off)
369 pr_info("NUMA disabled\n"); /* Forced off on command line. */ 371 pr_info("NUMA disabled\n"); /* Forced off on command line. */
370 else
371 pr_info("No NUMA configuration found\n");
372 pr_info("NUMA: Faking a node at [mem %#018Lx-%#018Lx]\n", 372 pr_info("NUMA: Faking a node at [mem %#018Lx-%#018Lx]\n",
373 0LLU, PFN_PHYS(max_pfn) - 1); 373 0LLU, PFN_PHYS(max_pfn) - 1);
374 374