Commit 61d5b689 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ppc64: Register secondary threads in NUMA init code

From: Anton Blanchard <anton@samba.org>

Register secondary threads in NUMA init code
parent 36af1eb0
...@@ -124,6 +124,9 @@ static int __init parse_numa_properties(void) ...@@ -124,6 +124,9 @@ static int __init parse_numa_properties(void)
max_domain = numa_domain; max_domain = numa_domain;
map_cpu_to_node(cpu_nr, numa_domain); map_cpu_to_node(cpu_nr, numa_domain);
/* register the second thread on an SMT machine */
if (cur_cpu_spec->cpu_features & CPU_FTR_SMT)
map_cpu_to_node(cpu_nr ^ 0x1, numa_domain);
} }
for (; memory; memory = of_find_node_by_type(memory, "memory")) { for (; memory; memory = of_find_node_by_type(memory, "memory")) {
......
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