[PATCH][2.6] Setup P4 thermal interrupt vector on UP

From: Zwane Mwaikambo (zwane_at_arm.linux.org.uk)
Date: 08/08/03

  • Next message: Alistair J Strachan: "2.6.0-test2-mm5: scheduler problem & apic"
    Date:	Fri, 8 Aug 2003 14:17:58 -0400 (EDT)
    To: Linux Kernel <linux-kernel@vger.kernel.org>
    
    

    The P4 thermal interrupt vector was only getting set on SMP builds.

    Index: linux-2.5/arch/i386/kernel/smpboot.c
    ===================================================================
    RCS file: /home/cvs/linux-2.5/arch/i386/kernel/smpboot.c,v
    retrieving revision 1.63
    diff -u -p -B -r1.63 smpboot.c
    --- linux-2.5/arch/i386/kernel/smpboot.c 19 May 2003 18:45:28 -0000 1.63
    +++ linux-2.5/arch/i386/kernel/smpboot.c 8 Aug 2003 15:25:39 -0000
    @@ -1178,9 +1178,4 @@ void __init smp_intr_init(void)
     
             /* IPI for generic function call */
             set_intr_gate(CALL_FUNCTION_VECTOR, call_function_interrupt);
    -
    - /* thermal monitor LVT interrupt */
    -#ifdef CONFIG_X86_MCE_P4THERMAL
    - set_intr_gate(THERMAL_APIC_VECTOR, thermal_interrupt);
    -#endif
     }
    Index: linux-2.5/arch/i386/kernel/apic.c
    ===================================================================
    RCS file: /home/cvs/linux-2.5/arch/i386/kernel/apic.c,v
    retrieving revision 1.46
    diff -u -p -B -r1.46 apic.c
    --- linux-2.5/arch/i386/kernel/apic.c 24 Jun 2003 19:50:23 -0000 1.46
    +++ linux-2.5/arch/i386/kernel/apic.c 8 Aug 2003 15:25:40 -0000
    @@ -52,6 +52,11 @@ void __init apic_intr_init(void)
             /* IPI vectors for APIC spurious and error interrupts */
             set_intr_gate(SPURIOUS_APIC_VECTOR, spurious_interrupt);
             set_intr_gate(ERROR_APIC_VECTOR, error_interrupt);
    +
    + /* thermal monitor LVT interrupt */
    +#ifdef CONFIG_X86_MCE_P4THERMAL
    + set_intr_gate(THERMAL_APIC_VECTOR, thermal_interrupt);
    +#endif
     }
     
     /* Using APIC to generate smp_local_timer_interrupt? */
    -
    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/


  • Next message: Alistair J Strachan: "2.6.0-test2-mm5: scheduler problem & apic"

    Relevant Pages