|
@@ -1204,7 +1204,9 @@ int find_and_online_cpu_nid(int cpu)
|
|
int new_nid;
|
|
int new_nid;
|
|
|
|
|
|
/* Use associativity from first thread for all siblings */
|
|
/* Use associativity from first thread for all siblings */
|
|
- vphn_get_associativity(cpu, associativity);
|
|
|
|
|
|
+ if (vphn_get_associativity(cpu, associativity))
|
|
|
|
+ return cpu_to_node(cpu);
|
|
|
|
+
|
|
new_nid = associativity_to_nid(associativity);
|
|
new_nid = associativity_to_nid(associativity);
|
|
if (new_nid < 0 || !node_possible(new_nid))
|
|
if (new_nid < 0 || !node_possible(new_nid))
|
|
new_nid = first_online_node;
|
|
new_nid = first_online_node;
|