diff options
Diffstat (limited to 'arch/x86_64/mm')
-rw-r--r-- | arch/x86_64/mm/srat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86_64/mm/srat.c b/arch/x86_64/mm/srat.c index a126cb73928b..0e0725db20b7 100644 --- a/arch/x86_64/mm/srat.c +++ b/arch/x86_64/mm/srat.c | |||
@@ -394,6 +394,9 @@ int __init acpi_scan_nodes(unsigned long start, unsigned long end) | |||
394 | { | 394 | { |
395 | int i; | 395 | int i; |
396 | 396 | ||
397 | if (acpi_numa <= 0) | ||
398 | return -1; | ||
399 | |||
397 | /* First clean up the node list */ | 400 | /* First clean up the node list */ |
398 | for (i = 0; i < MAX_NUMNODES; i++) { | 401 | for (i = 0; i < MAX_NUMNODES; i++) { |
399 | cutoff_node(i, start, end); | 402 | cutoff_node(i, start, end); |
@@ -403,9 +406,6 @@ int __init acpi_scan_nodes(unsigned long start, unsigned long end) | |||
403 | } | 406 | } |
404 | } | 407 | } |
405 | 408 | ||
406 | if (acpi_numa <= 0) | ||
407 | return -1; | ||
408 | |||
409 | if (!nodes_cover_memory()) { | 409 | if (!nodes_cover_memory()) { |
410 | bad_srat(); | 410 | bad_srat(); |
411 | return -1; | 411 | return -1; |