Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22952
b: refs/heads/master
c: bc16a75
h: refs/heads/master
v: v3
  • Loading branch information
Nathan Lynch authored and Paul Mackerras committed Mar 22, 2006
1 parent 7abf3bb commit a1d8809
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 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: cf950b7af0e51935e559c54262214423e2b6c88a
refs/heads/master: bc16a75926941094db6b42d76014abb5e8d3a910
23 changes: 11 additions & 12 deletions trunk/arch/powerpc/mm/numa.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,11 @@ static int of_node_to_nid(struct device_node *device)
device->full_name);
nid = 0;
}

/* POWER4 LPAR uses 0xffff as invalid node */
if (nid == 0xffff)
nid = 0;

return nid;
}

Expand Down Expand Up @@ -297,14 +302,9 @@ static int __cpuinit numa_setup_cpu(unsigned long lcpu)
nid = of_node_to_nid(cpu);

if (nid >= num_online_nodes()) {
/*
* POWER4 LPAR uses 0xffff as invalid node,
* dont warn in this case.
*/
if (nid != 0xffff)
printk(KERN_ERR "WARNING: cpu %ld "
"maps to invalid NUMA node %d\n",
lcpu, nid);
printk(KERN_ERR "WARNING: cpu %ld "
"maps to invalid NUMA node %d\n",
lcpu, nid);
nid = 0;
}
out:
Expand Down Expand Up @@ -442,10 +442,9 @@ static int __init parse_numa_properties(void)
nid = of_node_to_nid(memory);

if (nid >= MAX_NUMNODES) {
if (nid != 0xffff)
printk(KERN_ERR "WARNING: memory at %lx maps "
"to invalid NUMA node %d\n", start,
nid);
printk(KERN_ERR "WARNING: memory at %lx maps "
"to invalid NUMA node %d\n", start,
nid);
nid = 0;
}

Expand Down

0 comments on commit a1d8809

Please sign in to comment.