diff options
author | Ingo Molnar <mingo@elte.hu> | 2006-10-17 03:10:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-17 11:18:45 -0400 |
commit | a460e745e8f9c75a0525ff94154a0629f9d3e05d (patch) | |
tree | 38ef71d81c2ca2f979319b0a91f34f0cf9998643 /arch/i386/kernel/io_apic.c | |
parent | 308ba5fcf89b6e328f9290067181c1e4d772fdc9 (diff) |
[PATCH] genirq: clean up irq-flow-type naming
Introduce desc->name and eliminate the handle_irq_name() hack. Add
set_irq_chip_and_handler_name() to set the flow type and name at once.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Matthew Wilcox <willy@debian.org>
Cc: Kyle McMartin <kyle@mcmartin.ca>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/i386/kernel/io_apic.c')
-rw-r--r-- | arch/i386/kernel/io_apic.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/arch/i386/kernel/io_apic.c b/arch/i386/kernel/io_apic.c index 27bceaf5ce40..350192d6ab98 100644 --- a/arch/i386/kernel/io_apic.c +++ b/arch/i386/kernel/io_apic.c | |||
@@ -1225,11 +1225,11 @@ static void ioapic_register_intr(int irq, int vector, unsigned long trigger) | |||
1225 | { | 1225 | { |
1226 | if ((trigger == IOAPIC_AUTO && IO_APIC_irq_trigger(irq)) || | 1226 | if ((trigger == IOAPIC_AUTO && IO_APIC_irq_trigger(irq)) || |
1227 | trigger == IOAPIC_LEVEL) | 1227 | trigger == IOAPIC_LEVEL) |
1228 | set_irq_chip_and_handler(irq, &ioapic_chip, | 1228 | set_irq_chip_and_handler_name(irq, &ioapic_chip, |
1229 | handle_fasteoi_irq); | 1229 | handle_fasteoi_irq, "fasteoi"); |
1230 | else | 1230 | else |
1231 | set_irq_chip_and_handler(irq, &ioapic_chip, | 1231 | set_irq_chip_and_handler_name(irq, &ioapic_chip, |
1232 | handle_edge_irq); | 1232 | handle_edge_irq, "edge"); |
1233 | set_intr_gate(vector, interrupt[irq]); | 1233 | set_intr_gate(vector, interrupt[irq]); |
1234 | } | 1234 | } |
1235 | 1235 | ||
@@ -2235,7 +2235,8 @@ static inline void check_timer(void) | |||
2235 | printk(KERN_INFO "...trying to set up timer as Virtual Wire IRQ..."); | 2235 | printk(KERN_INFO "...trying to set up timer as Virtual Wire IRQ..."); |
2236 | 2236 | ||
2237 | disable_8259A_irq(0); | 2237 | disable_8259A_irq(0); |
2238 | set_irq_chip_and_handler(0, &lapic_chip, handle_fasteoi_irq); | 2238 | set_irq_chip_and_handler_name(0, &lapic_chip, handle_fasteoi_irq, |
2239 | "fasteio"); | ||
2239 | apic_write_around(APIC_LVT0, APIC_DM_FIXED | vector); /* Fixed mode */ | 2240 | apic_write_around(APIC_LVT0, APIC_DM_FIXED | vector); /* Fixed mode */ |
2240 | enable_8259A_irq(0); | 2241 | enable_8259A_irq(0); |
2241 | 2242 | ||
@@ -2541,7 +2542,8 @@ int arch_setup_msi_irq(unsigned int irq, struct pci_dev *dev) | |||
2541 | 2542 | ||
2542 | write_msi_msg(irq, &msg); | 2543 | write_msi_msg(irq, &msg); |
2543 | 2544 | ||
2544 | set_irq_chip_and_handler(irq, &msi_chip, handle_edge_irq); | 2545 | set_irq_chip_and_handler_name(irq, &msi_chip, handle_edge_irq, |
2546 | "edge"); | ||
2545 | 2547 | ||
2546 | return 0; | 2548 | return 0; |
2547 | } | 2549 | } |
@@ -2636,7 +2638,8 @@ int arch_setup_ht_irq(unsigned int irq, struct pci_dev *dev) | |||
2636 | write_ht_irq_low(irq, low); | 2638 | write_ht_irq_low(irq, low); |
2637 | write_ht_irq_high(irq, high); | 2639 | write_ht_irq_high(irq, high); |
2638 | 2640 | ||
2639 | set_irq_chip_and_handler(irq, &ht_irq_chip, handle_edge_irq); | 2641 | set_irq_chip_and_handler_name(irq, &ht_irq_chip, |
2642 | handle_edge_irq, "edge"); | ||
2640 | } | 2643 | } |
2641 | return vector; | 2644 | return vector; |
2642 | } | 2645 | } |