[PATCH] Check enabled field of processor affinity

From: Keiichiro Tokunaga <tokunaga.keiich_at_jp.fujitsu.com>
Date: 2004-09-28 12:46:04
Hi there,

I think that acpi_numa_processor_affinity_init() should check the
enabled field of processor affinity because ACPI spec says "If clear,
the OSPM ignores the contents of the Processor Local APIC/SAPIC
Affinity Structure".

Thanks,
Keiichiro Tokunaga


Name: Check enabled field of processor affinity
Status: Compiled on 2.6.9-rc2
Signed-off-by: Keiichiro Tokunaga <tokunaga.keiich@jp.fujitsu.com>

---

 linux-2.6.9-rc2-enabled-bit-kei/arch/ia64/kernel/acpi.c |    4 ++++
 1 files changed, 4 insertions(+)

diff -puN arch/ia64/kernel/acpi.c~enabled_fix arch/ia64/kernel/acpi.c
--- linux-2.6.9-rc2-enabled-bit/arch/ia64/kernel/acpi.c~enabled_fix	2004-09-28 10:24:18.620152358 +0900
+++ linux-2.6.9-rc2-enabled-bit-kei/arch/ia64/kernel/acpi.c	2004-09-28 10:24:18.623082067 +0900
@@ -385,6 +385,10 @@ acpi_numa_slit_init (struct acpi_table_s
 void __init
 acpi_numa_processor_affinity_init (struct acpi_table_processor_affinity *pa)
 {
+	/* Ignore disabled entries */
+	if (!pa->flags.enabled)
+		return;
+
 	/* record this node in proximity bitmap */
 	pxm_bit_set(pa->proximity_domain);
 

_
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Mon Sep 27 22:50:22 2004

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:31 EST