ACPI_NUMA: fix HP IA64 simulator issue with extended memory domain
[sfrench/cifs-2.6.git] / arch / ia64 / kernel / acpi.c
index 989ffc3f7ce399fc55eda38c0fec71fa5dab1f44..a99b0cc92881919a976fabdb02ca3274e8e449e7 100644 (file)
@@ -422,8 +422,8 @@ static int get_memory_proximity_domain(struct acpi_srat_mem_affinity *ma)
        int pxm;
 
        pxm = ma->proximity_domain;
-       if (ia64_platform_is("sn2"))
-               pxm += ma->reserved << 8;
+       if (!ia64_platform_is("sn2"))
+               pxm &= 0xff;
 
        return pxm;
 }