2003-05-19 08:00:07

by Zwane Mwaikambo

[permalink] [raw]
Subject: [PATCH][2.5] Add Focus processor bit comment

Add an explanation for clearing the focus bit on P4

Index: linux-2.5-devel/arch/i386/kernel/apic.c
===================================================================
RCS file: /home/cvs/linux-2.5/arch/i386/kernel/apic.c,v
retrieving revision 1.40
diff -u -p -B -r1.40 apic.c
--- linux-2.5-devel/arch/i386/kernel/apic.c 17 Apr 2003 23:28:48 -0000 1.40
+++ linux-2.5-devel/arch/i386/kernel/apic.c 19 May 2003 07:07:52 -0000
@@ -291,6 +291,8 @@ void __init init_bsp_APIC(void)
value = apic_read(APIC_SPIV);
value &= ~APIC_VECTOR_MASK;
value |= APIC_SPIV_APIC_ENABLED;
+
+ /* This bit is reserved on P4/Xeon and should be cleared */
if ((boot_cpu_data.x86_vendor == X86_VENDOR_INTEL) && (boot_cpu_data.x86 == 15))
value &= ~APIC_SPIV_FOCUS_DISABLED;
else

--
function.linuxpower.ca