[MIPS] Make irq number allocator generally available for fixing EV64120.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Este commit está contenido en:
Ralf Baechle
2006-11-06 17:41:06 +00:00
padre 325d08d1a4
commit 4a4cf77923
Se han modificado 4 ficheros con 46 adiciones y 25 borrados

Ver fichero

@@ -354,29 +354,6 @@ static struct irq_chip bridge_irq_type = {
.end = end_bridge_irq,
};
static unsigned long irq_map[NR_IRQS / BITS_PER_LONG];
int allocate_irqno(void)
{
int irq;
again:
irq = find_first_zero_bit(irq_map, NR_IRQS);
if (irq >= NR_IRQS)
return -ENOSPC;
if (test_and_set_bit(irq, irq_map))
goto again;
return irq;
}
void free_irqno(unsigned int irq)
{
clear_bit(irq, irq_map);
}
void __devinit register_bridge_irq(unsigned int irq)
{
irq_desc[irq].status = IRQ_DISABLED;