[patch] io-apic cleanup #3, BK-curr

From: Ingo Molnar (mingo_at_elte.hu)
Date: 05/27/04

  • Next message: Arthur Perry: "Re: GART error 11 (fwd)"
    Date:	Thu, 27 May 2004 15:31:05 +0200
    To: Andrew Morton <akpm@osdl.org>
    
    

    the patch below gets rid of io_apic_sync().

    io_apic_sync() was introduced in 2.1.104 and it was originally done for
    masking and unmasking as well. Later the unmasking use got removed but
    the masking use lingered around. I dont think it was ever justified to
    do it and clearly since the lack of io_apic_sync() didnt break some of
    the other writes we do to the IO-APIC registers, it must be unnecessary
    in the masking case too. Maciej?

            Ingo

    Signed-off-by: Ingo Molnar <mingo@elte.hu>

    --- linux/arch/i386/kernel/io_apic.c.orig
    +++ linux/arch/i386/kernel/io_apic.c
    @@ -145,10 +145,7 @@ static void __modify_IO_APIC_irq (unsign
     /* mask = 1 */
     static void __mask_IO_APIC_irq (unsigned int irq)
     {
    - struct irq_pin_list *entry = irq_2_pin + irq;
             __modify_IO_APIC_irq(irq, 0x00010000, 0);
    - /* Is it needed? Or do others need it too? */
    - io_apic_sync(entry->apic);
     }
     
     /* mask = 0 */
    --- linux/include/asm-i386/io_apic.h.orig
    +++ linux/include/asm-i386/io_apic.h
    @@ -188,15 +188,6 @@ static inline void io_apic_modify(unsign
             *(IO_APIC_BASE(apic)+4) = value;
     }
     
    -/*
    - * Synchronize the IO-APIC and the CPU by doing
    - * a dummy read from the IO-APIC
    - */
    -static inline void io_apic_sync(unsigned int apic)
    -{
    - (void) *(IO_APIC_BASE(apic)+4);
    -}
    -
     /* 1 if "noapic" boot option passed */
     extern int skip_ioapic_setup;
     
    -
    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: Arthur Perry: "Re: GART error 11 (fwd)"

    Relevant Pages

    • Re: [patch] io-apic cleanup #3, BK-curr
      ... > masking and unmasking as well. ... > the masking use lingered around. ... Maciej W. Rozycki, Technical University of Gdansk, Poland + ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] embarassing typo
      ... BTW, when assigning to a char type, is the masking really necessary at ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.12-rc6-mm1 & 2K lun testing
      ... Badari Pulavarty wrote: ... I would consider masking off __GFP_HIGH in the gfp_mask of that ... Send instant messages to your online friends http://au.messenger.yahoo.com ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH] UML - eliminate useless thread field
      ... and was masking some kernel stack size assumptions. ... extern void remove_umid_dir; ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)