diff options
| -rw-r--r-- | arch/x86/kernel/cpu/amd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index e678ddeed030..a07956a08936 100644 --- a/arch/x86/kernel/cpu/amd.c +++ b/arch/x86/kernel/cpu/amd.c | |||
| @@ -434,8 +434,7 @@ static void srat_detect_node(struct cpuinfo_x86 *c) | |||
| 434 | */ | 434 | */ |
| 435 | int ht_nodeid = c->initial_apicid; | 435 | int ht_nodeid = c->initial_apicid; |
| 436 | 436 | ||
| 437 | if (ht_nodeid >= 0 && | 437 | if (__apicid_to_node[ht_nodeid] != NUMA_NO_NODE) |
| 438 | __apicid_to_node[ht_nodeid] != NUMA_NO_NODE) | ||
| 439 | node = __apicid_to_node[ht_nodeid]; | 438 | node = __apicid_to_node[ht_nodeid]; |
| 440 | /* Pick a nearby node */ | 439 | /* Pick a nearby node */ |
| 441 | if (!node_online(node)) | 440 | if (!node_online(node)) |
