Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22949
b: refs/heads/master
c: bf4b85b
h: refs/heads/master
i:
  22947: 97f65a9
v: v3
  • Loading branch information
Nathan Lynch authored and Paul Mackerras committed Mar 22, 2006
1 parent 919bde8 commit 6fe76b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: c08888cf3c80fe07bfd176113c390ca31d3ba5c2
refs/heads/master: bf4b85b0e4bab42b3e8d8b0acc6851bb85e2050b
8 changes: 5 additions & 3 deletions trunk/arch/powerpc/mm/numa.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ static inline void map_cpu_to_node(int cpu, int node)
{
numa_cpu_lookup_table[cpu] = node;

dbg("adding cpu %d to node %d\n", cpu, node);

if (!(cpu_isset(cpu, numa_cpumask_lookup_table[node])))
cpu_set(cpu, numa_cpumask_lookup_table[node]);
}
Expand Down Expand Up @@ -246,8 +248,7 @@ static int __init find_min_common_depth(void)
if ((len >= 1) && ref_points) {
depth = ref_points[1];
} else {
dbg("WARNING: could not find NUMA "
"associativity reference point\n");
dbg("NUMA: ibm,associativity-reference-points not found.\n");
depth = -1;
}
of_node_put(rtas_root);
Expand Down Expand Up @@ -385,10 +386,11 @@ static int __init parse_numa_properties(void)

min_common_depth = find_min_common_depth();

dbg("NUMA associativity depth for CPU/Memory: %d\n", min_common_depth);
if (min_common_depth < 0)
return min_common_depth;

dbg("NUMA associativity depth for CPU/Memory: %d\n", min_common_depth);

/*
* Even though we connect cpus to numa domains later in SMP init,
* we need to know the maximum node id now. This is because each
Expand Down

0 comments on commit 6fe76b2

Please sign in to comment.