]> Git Repo - linux.git/commitdiff
x86-32, NUMA: Fix ACPI NUMA init broken by recent x86-64 change
authorTejun Heo <[email protected]>
Mon, 4 Apr 2011 10:06:45 +0000 (03:06 -0700)
committerIngo Molnar <[email protected]>
Mon, 4 Apr 2011 14:56:33 +0000 (16:56 +0200)
Commit d8fc3afc49 (x86, NUMA: Move *_numa_init() invocations
into initmem_init()) moved acpi_numa_init() call into NUMA
initmem_init() but forgot to update 32bit NUMA init breaking ACPI
NUMA configuration for 32bit.

acpi_numa_init() call was later moved again to srat_64.c.  Match
it by adding the call to get_memcfg_from_srat() in srat_32.c.

Signed-off-by: Tejun Heo <[email protected]>
Cc: Yinghai Lu <[email protected]>
Cc: Cyrill Gorcunov <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: H. Peter Anvin <[email protected]>
LKML-Reference: <20110404100645[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/mm/srat_32.c

index 48651c6f657d58605ef5ab6ac54ec3ff03400ac0..364f36bdfad878b897a3119a23006856b526bf48 100644 (file)
@@ -211,10 +211,12 @@ int __init get_memcfg_from_srat(void)
 {
        int i, j, nid;
 
-
        if (srat_disabled())
                goto out_fail;
 
+       if (acpi_numa_init() < 0)
+               goto out_fail;
+
        if (num_memory_chunks == 0) {
                printk(KERN_DEBUG
                         "could not find any ACPI SRAT memory areas.\n");
This page took 0.059891 seconds and 4 git commands to generate.