aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/apic/io_apic.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2010-09-28 09:01:33 -0400
committerThomas Gleixner <tglx@linutronix.de>2010-10-12 10:53:36 -0400
commit4305df947ca1fd52867c8d56837a4e6b1e33167c (patch)
treeccc0585f45f31fc34944267d6165eec38a5ed266 /arch/x86/kernel/apic/io_apic.c
parent020dd984d7c0792e8234f2e4b4fb0534fe750f9d (diff)
x86: i8259: Convert to new irq_chip functions
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/apic/io_apic.c')
-rw-r--r--arch/x86/kernel/apic/io_apic.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c
index 74bb027b517e..e5ae2a222620 100644
--- a/arch/x86/kernel/apic/io_apic.c
+++ b/arch/x86/kernel/apic/io_apic.c
@@ -1459,7 +1459,7 @@ static void setup_IO_APIC_irq(int apic_id, int pin, unsigned int irq, struct irq
1459 1459
1460 ioapic_register_intr(irq, desc, trigger); 1460 ioapic_register_intr(irq, desc, trigger);
1461 if (irq < legacy_pic->nr_legacy_irqs) 1461 if (irq < legacy_pic->nr_legacy_irqs)
1462 legacy_pic->chip->mask(irq); 1462 legacy_pic->mask(irq);
1463 1463
1464 ioapic_write_entry(apic_id, pin, entry); 1464 ioapic_write_entry(apic_id, pin, entry);
1465} 1465}
@@ -2233,7 +2233,7 @@ static unsigned int startup_ioapic_irq(unsigned int irq)
2233 2233
2234 raw_spin_lock_irqsave(&ioapic_lock, flags); 2234 raw_spin_lock_irqsave(&ioapic_lock, flags);
2235 if (irq < legacy_pic->nr_legacy_irqs) { 2235 if (irq < legacy_pic->nr_legacy_irqs) {
2236 legacy_pic->chip->mask(irq); 2236 legacy_pic->mask(irq);
2237 if (legacy_pic->irq_pending(irq)) 2237 if (legacy_pic->irq_pending(irq))
2238 was_pending = 1; 2238 was_pending = 1;
2239 } 2239 }
@@ -2928,7 +2928,7 @@ static inline void __init check_timer(void)
2928 /* 2928 /*
2929 * get/set the timer IRQ vector: 2929 * get/set the timer IRQ vector:
2930 */ 2930 */
2931 legacy_pic->chip->mask(0); 2931 legacy_pic->mask(0);
2932 assign_irq_vector(0, cfg, apic->target_cpus()); 2932 assign_irq_vector(0, cfg, apic->target_cpus());
2933 2933
2934 /* 2934 /*
@@ -3000,7 +3000,7 @@ static inline void __init check_timer(void)
3000 if (timer_irq_works()) { 3000 if (timer_irq_works()) {
3001 if (nmi_watchdog == NMI_IO_APIC) { 3001 if (nmi_watchdog == NMI_IO_APIC) {
3002 setup_nmi(); 3002 setup_nmi();
3003 legacy_pic->chip->unmask(0); 3003 legacy_pic->unmask(0);
3004 } 3004 }
3005 if (disable_timer_pin_1 > 0) 3005 if (disable_timer_pin_1 > 0)
3006 clear_IO_APIC_pin(0, pin1); 3006 clear_IO_APIC_pin(0, pin1);
@@ -3023,14 +3023,14 @@ static inline void __init check_timer(void)
3023 */ 3023 */
3024 replace_pin_at_irq_node(cfg, node, apic1, pin1, apic2, pin2); 3024 replace_pin_at_irq_node(cfg, node, apic1, pin1, apic2, pin2);
3025 setup_timer_IRQ0_pin(apic2, pin2, cfg->vector); 3025 setup_timer_IRQ0_pin(apic2, pin2, cfg->vector);
3026 legacy_pic->chip->unmask(0); 3026 legacy_pic->unmask(0);
3027 if (timer_irq_works()) { 3027 if (timer_irq_works()) {
3028 apic_printk(APIC_QUIET, KERN_INFO "....... works.\n"); 3028 apic_printk(APIC_QUIET, KERN_INFO "....... works.\n");
3029 timer_through_8259 = 1; 3029 timer_through_8259 = 1;
3030 if (nmi_watchdog == NMI_IO_APIC) { 3030 if (nmi_watchdog == NMI_IO_APIC) {
3031 legacy_pic->chip->mask(0); 3031 legacy_pic->mask(0);
3032 setup_nmi(); 3032 setup_nmi();
3033 legacy_pic->chip->unmask(0); 3033 legacy_pic->unmask(0);
3034 } 3034 }
3035 goto out; 3035 goto out;
3036 } 3036 }
@@ -3038,7 +3038,7 @@ static inline void __init check_timer(void)
3038 * Cleanup, just in case ... 3038 * Cleanup, just in case ...
3039 */ 3039 */
3040 local_irq_disable(); 3040 local_irq_disable();
3041 legacy_pic->chip->mask(0); 3041 legacy_pic->mask(0);
3042 clear_IO_APIC_pin(apic2, pin2); 3042 clear_IO_APIC_pin(apic2, pin2);
3043 apic_printk(APIC_QUIET, KERN_INFO "....... failed.\n"); 3043 apic_printk(APIC_QUIET, KERN_INFO "....... failed.\n");
3044 } 3044 }
@@ -3057,14 +3057,14 @@ static inline void __init check_timer(void)
3057 3057
3058 lapic_register_intr(0, desc); 3058 lapic_register_intr(0, desc);
3059 apic_write(APIC_LVT0, APIC_DM_FIXED | cfg->vector); /* Fixed mode */ 3059 apic_write(APIC_LVT0, APIC_DM_FIXED | cfg->vector); /* Fixed mode */
3060 legacy_pic->chip->unmask(0); 3060 legacy_pic->unmask(0);
3061 3061
3062 if (timer_irq_works()) { 3062 if (timer_irq_works()) {
3063 apic_printk(APIC_QUIET, KERN_INFO "..... works.\n"); 3063 apic_printk(APIC_QUIET, KERN_INFO "..... works.\n");
3064 goto out; 3064 goto out;
3065 } 3065 }
3066 local_irq_disable(); 3066 local_irq_disable();
3067 legacy_pic->chip->mask(0); 3067 legacy_pic->mask(0);
3068 apic_write(APIC_LVT0, APIC_LVT_MASKED | APIC_DM_FIXED | cfg->vector); 3068 apic_write(APIC_LVT0, APIC_LVT_MASKED | APIC_DM_FIXED | cfg->vector);
3069 apic_printk(APIC_QUIET, KERN_INFO "..... failed.\n"); 3069 apic_printk(APIC_QUIET, KERN_INFO "..... failed.\n");
3070 3070