[PATCH][2.5] focus processor bit reserved on P4

Zwane Mwaikambo (zwane@linuxpower.ca)
Mon, 26 Aug 2002 08:21:42 +0200 (SAST)


This patch is just to comply with the recommendations as stated on p304 of
vol3 ie reserved bit should be cleared.

Index: linux-2.5.31/arch/i386/kernel/apic.c
===================================================================
RCS file: /build/cvsroot/linux-2.5.31/arch/i386/kernel/apic.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 apic.c
--- linux-2.5.31/arch/i386/kernel/apic.c 24 Aug 2002 21:05:08 -0000 1.1.1.1
+++ linux-2.5.31/arch/i386/kernel/apic.c 25 Aug 2002 21:05:06 -0000
@@ -258,7 +258,10 @@
value = apic_read(APIC_SPIV);
value &= ~APIC_VECTOR_MASK;
value |= APIC_SPIV_APIC_ENABLED;
- value |= APIC_SPIV_FOCUS_DISABLED;
+ if ((boot_cpu_data.x86_vendor == X86_VENDOR_INTEL) && (boot_cpu_data.x86 == 15))
+ value &= ~APIC_SPIV_FOCUS_DISABLED;
+ else
+ value |= APIC_SPIV_FOCUS_DISABLED;
value |= SPURIOUS_APIC_VECTOR;
apic_write_around(APIC_SPIV, value);

-- 
function.linuxpower.ca

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/