Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234855
b: refs/heads/master
c: 99df738
h: refs/heads/master
i:
  234853: 5e743d6
  234851: bee809c
  234847: 5ce8d3b
v: v3
  • Loading branch information
Tejun Heo committed Feb 16, 2011
1 parent 44ba303 commit f6edcc1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ec8cf29b1d39aeb6ef98bc589f0c9a33a8f94c49
refs/heads/master: 99df738cd28cc39054cd1a77685d4a94ed2193a4
6 changes: 2 additions & 4 deletions trunk/arch/x86/mm/amdtopology_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ int __init amd_numa_init(void)
unsigned long end = PFN_PHYS(max_pfn);
unsigned numnodes;
unsigned long prevbase;
int i, nb, found = 0;
int i, nb;
u32 nodeid, reg;

if (!early_pci_allowed())
Expand Down Expand Up @@ -165,8 +165,6 @@ int __init amd_numa_init(void)
pr_info("Node %d MemBase %016lx Limit %016lx\n",
nodeid, base, limit);

found++;

nodes[nodeid].start = base;
nodes[nodeid].end = limit;

Expand All @@ -176,7 +174,7 @@ int __init amd_numa_init(void)
node_set(nodeid, cpu_nodes_parsed);
}

if (!found)
if (!nodes_weight(mem_nodes_parsed))
return -ENOENT;
return 0;
}
Expand Down

0 comments on commit f6edcc1

Please sign in to comment.