alpha: kill off alpha_do_IRQ
Good riddance... Nuke a pile of redundant handlers that the generic code takes care of as well. Tested-by: Michael Cree <mcree@orcon.net.nz> Signed-off-by: Kyle McMartin <kyle@redhat.com> Signed-off-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
committed by
Matt Turner
parent
a891b393dd
commit
7d209c8110
@@ -139,32 +139,11 @@ wildfire_mask_and_ack_irq(unsigned int irq)
|
||||
spin_unlock(&wildfire_irq_lock);
|
||||
}
|
||||
|
||||
static unsigned int
|
||||
wildfire_startup_irq(unsigned int irq)
|
||||
{
|
||||
wildfire_enable_irq(irq);
|
||||
return 0; /* never anything pending */
|
||||
}
|
||||
|
||||
static void
|
||||
wildfire_end_irq(unsigned int irq)
|
||||
{
|
||||
#if 0
|
||||
if (!irq_has_action(irq))
|
||||
printk("got irq %d\n", irq);
|
||||
#endif
|
||||
if (!(irq_to_desc(irq)->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
|
||||
wildfire_enable_irq(irq);
|
||||
}
|
||||
|
||||
static struct irq_chip wildfire_irq_type = {
|
||||
.name = "WILDFIRE",
|
||||
.startup = wildfire_startup_irq,
|
||||
.shutdown = wildfire_disable_irq,
|
||||
.enable = wildfire_enable_irq,
|
||||
.disable = wildfire_disable_irq,
|
||||
.ack = wildfire_mask_and_ack_irq,
|
||||
.end = wildfire_end_irq,
|
||||
.unmask = wildfire_enable_irq,
|
||||
.mask = wildfire_disable_irq,
|
||||
.mask_ack = wildfire_mask_and_ack_irq,
|
||||
};
|
||||
|
||||
static void __init
|
||||
@@ -200,15 +179,16 @@ wildfire_init_irq_per_pca(int qbbno, int pcano)
|
||||
continue;
|
||||
irq_to_desc(i+irq_bias)->status |= IRQ_LEVEL;
|
||||
set_irq_chip_and_handler(i+irq_bias, &wildfire_irq_type,
|
||||
alpha_do_IRQ);
|
||||
handle_level_irq);
|
||||
}
|
||||
|
||||
irq_to_desc(36+irq_bias)->status |= IRQ_LEVEL;
|
||||
set_irq_chip_and_handler(36+irq_bias, &wildfire_irq_type, alpha_do_IRQ);
|
||||
set_irq_chip_and_handler(36+irq_bias, &wildfire_irq_type,
|
||||
handle_level_irq);
|
||||
for (i = 40; i < 64; ++i) {
|
||||
irq_to_desc(i+irq_bias)->status |= IRQ_LEVEL;
|
||||
set_irq_chip_and_handler(i+irq_bias, &wildfire_irq_type,
|
||||
alpha_do_IRQ);
|
||||
handle_level_irq);
|
||||
}
|
||||
|
||||
setup_irq(32+irq_bias, &isa_enable);
|
||||
|
Reference in New Issue
Block a user