From: Kenji Kaneshige Date: Wed, 15 Mar 2006 05:45:11 +0000 (+0900) Subject: [IA64] Ignore disabled Local SAPIC Affinity Structure in SRAT X-Git-Tag: v2.6.17-rc1~732^2~15 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d903cea3811994d4c4122a0e3ca6d3a197e812e2;p=karo-tx-linux.git [IA64] Ignore disabled Local SAPIC Affinity Structure in SRAT According to the ACPI spec, the OSPM must ignore the contents of the Processor Local APIC/SAPIC Affinity Structure in System Resource Affinity Table (SRAT), if its enable flag is cleared. However, ia64 linux refers all of the Processor Local APIC/SAPIC Affinity Structures in SRAT regardless of the enable flag. This is obviously against the ACPI spec. This patch fixes this bug. Signed-off-by: Kenji Kaneshige Signed-off-by: Tony Luck --- diff --git a/arch/ia64/kernel/acpi.c b/arch/ia64/kernel/acpi.c index 4722ec51c70c..24fe7c81e108 100644 --- a/arch/ia64/kernel/acpi.c +++ b/arch/ia64/kernel/acpi.c @@ -443,6 +443,9 @@ void __init acpi_numa_slit_init(struct acpi_table_slit *slit) void __init acpi_numa_processor_affinity_init(struct acpi_table_processor_affinity *pa) { + if (!pa->flags.enabled) + return; + /* record this node in proximity bitmap */ pxm_bit_set(pa->proximity_domain);