aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/mm/amdtopology_64.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/x86/mm/amdtopology_64.c b/arch/x86/mm/amdtopology_64.c
index 4f822a247125..7d85cf7e0324 100644
--- a/arch/x86/mm/amdtopology_64.c
+++ b/arch/x86/mm/amdtopology_64.c
@@ -74,7 +74,7 @@ int __init amd_numa_init(void)
74 unsigned long end = PFN_PHYS(max_pfn); 74 unsigned long end = PFN_PHYS(max_pfn);
75 unsigned numnodes; 75 unsigned numnodes;
76 unsigned long prevbase; 76 unsigned long prevbase;
77 int i, nb, found = 0; 77 int i, nb;
78 u32 nodeid, reg; 78 u32 nodeid, reg;
79 79
80 if (!early_pci_allowed()) 80 if (!early_pci_allowed())
@@ -165,8 +165,6 @@ int __init amd_numa_init(void)
165 pr_info("Node %d MemBase %016lx Limit %016lx\n", 165 pr_info("Node %d MemBase %016lx Limit %016lx\n",
166 nodeid, base, limit); 166 nodeid, base, limit);
167 167
168 found++;
169
170 nodes[nodeid].start = base; 168 nodes[nodeid].start = base;
171 nodes[nodeid].end = limit; 169 nodes[nodeid].end = limit;
172 170
@@ -176,7 +174,7 @@ int __init amd_numa_init(void)
176 node_set(nodeid, cpu_nodes_parsed); 174 node_set(nodeid, cpu_nodes_parsed);
177 } 175 }
178 176
179 if (!found) 177 if (!nodes_weight(mem_nodes_parsed))
180 return -ENOENT; 178 return -ENOENT;
181 return 0; 179 return 0;
182} 180}