diff options
author | Zhen Lei <thunder.leizhen@huawei.com> | 2016-09-01 14:54:56 +0800 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2016-09-09 14:59:08 +0100 |
commit | 794224ea565c439ca624a3760ac220928463ea17 (patch) | |
tree | 07e048febf683529c678f7cc488d2f388b06ee26 /arch/arm64/mm | |
parent | 9787ed6e5cee7a62320f3014eb5e7b373502c292 (diff) | |
download | linux-794224ea565c439ca624a3760ac220928463ea17.tar.bz2 |
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.c | 6 |
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)) if (ret < 0) return ret; - if (nodes_empty(numa_nodes_parsed)) + if (nodes_empty(numa_nodes_parsed)) { + pr_info("No NUMA configuration found\n"); return -EINVAL; + } ret = numa_register_nodes(); if (ret < 0) @@ -367,8 +369,6 @@ static int __init dummy_numa_init(void) if (numa_off) pr_info("NUMA disabled\n"); /* Forced off on command line. */ - else - pr_info("No NUMA configuration found\n"); pr_info("NUMA: Faking a node at [mem %#018Lx-%#018Lx]\n", 0LLU, PFN_PHYS(max_pfn) - 1); |