Commit bf4b85b0 authored by Nathan Lynch's avatar Nathan Lynch Committed by Paul Mackerras

[PATCH] powerpc numa: Minor debugging code changes

Add debug statement for map_cpu_to_node; it's useful for cpu hotplug.

Clarify debug statement about not finding the numa reference points
property.

Don't print a meaningless associativity depth (-1) on non-numa systems.
Signed-off-by: default avatarNathan Lynch <nathanl@austin.ibm.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent c08888cf
...@@ -133,6 +133,8 @@ static inline void map_cpu_to_node(int cpu, int node) ...@@ -133,6 +133,8 @@ static inline void map_cpu_to_node(int cpu, int node)
{ {
numa_cpu_lookup_table[cpu] = 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]))) if (!(cpu_isset(cpu, numa_cpumask_lookup_table[node])))
cpu_set(cpu, numa_cpumask_lookup_table[node]); cpu_set(cpu, numa_cpumask_lookup_table[node]);
} }
...@@ -246,8 +248,7 @@ static int __init find_min_common_depth(void) ...@@ -246,8 +248,7 @@ static int __init find_min_common_depth(void)
if ((len >= 1) && ref_points) { if ((len >= 1) && ref_points) {
depth = ref_points[1]; depth = ref_points[1];
} else { } else {
dbg("WARNING: could not find NUMA " dbg("NUMA: ibm,associativity-reference-points not found.\n");
"associativity reference point\n");
depth = -1; depth = -1;
} }
of_node_put(rtas_root); of_node_put(rtas_root);
...@@ -385,10 +386,11 @@ static int __init parse_numa_properties(void) ...@@ -385,10 +386,11 @@ static int __init parse_numa_properties(void)
min_common_depth = find_min_common_depth(); min_common_depth = find_min_common_depth();
dbg("NUMA associativity depth for CPU/Memory: %d\n", min_common_depth);
if (min_common_depth < 0) if (min_common_depth < 0)
return min_common_depth; 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, * 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 * we need to know the maximum node id now. This is because each
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment