]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: I/O APIC: remove redundant 8259A {,un}masking
authorMaciej W. Rozycki <macro@linux-mips.org>
Tue, 27 May 2008 20:19:22 +0000 (21:19 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 8 Jul 2008 07:13:02 +0000 (09:13 +0200)
For a better control the masking and unmasking of the timer interrupt
line in the 8259A operating in the 'Virtual Wire' mode has been moved out
of setup_ExtINT_IRQ0_pin() now, so remove the redundant calls from the
function.

Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/io_apic_32.c
arch/x86/kernel/io_apic_64.c

index c93c0d3c1a6b791aa69e60331fbdd8681089d186..6e743ecf863b55903ecb7830858891c33919b0ec 100644 (file)
@@ -1310,8 +1310,6 @@ static void __init setup_ExtINT_IRQ0_pin(unsigned int apic, unsigned int pin, in
 
        memset(&entry,0,sizeof(entry));
 
-       disable_8259A_irq(0);
-
        /* mask LVT0 */
        apic_write_around(APIC_LVT0, APIC_LVT_MASKED | APIC_DM_EXTINT);
 
@@ -1337,8 +1335,6 @@ static void __init setup_ExtINT_IRQ0_pin(unsigned int apic, unsigned int pin, in
         * Add it to the IO-APIC irq-routing table:
         */
        ioapic_write_entry(apic, pin, entry);
-
-       enable_8259A_irq(0);
 }
 
 void __init print_IO_APIC(void)
index 2a60bfb7446fdeab9a5feb952ff0fdf95e8d192c..83d4e117746ba12014f703489bea9778c01a16ab 100644 (file)
@@ -906,8 +906,6 @@ static void __init setup_ExtINT_IRQ0_pin(unsigned int apic, unsigned int pin, in
 
        memset(&entry, 0, sizeof(entry));
 
-       disable_8259A_irq(0);
-
        /* mask LVT0 */
        apic_write(APIC_LVT0, APIC_LVT_MASKED | APIC_DM_EXTINT);
 
@@ -933,8 +931,6 @@ static void __init setup_ExtINT_IRQ0_pin(unsigned int apic, unsigned int pin, in
         * Add it to the IO-APIC irq-routing table:
         */
        ioapic_write_entry(apic, pin, entry);
-
-       enable_8259A_irq(0);
 }
 
 void __apicdebuginit print_IO_APIC(void)