2002-08-26 06:00:39

by Zwane Mwaikambo

[permalink] [raw]
Subject: [PATCH][2.5] focus processor bit reserved on P4

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