X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fsh%2Fkernel%2Firq.c;h=a37e2d1cffcee150c3d611edb88b454c1f10ee0e;hb=1be35e94e1da3669db492995cd2c8b1a37016b11;hp=d78503dd22da281303a9b07a94d1bb01278736c7;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/arch/sh/kernel/irq.c b/arch/sh/kernel/irq.c index d78503dd2..a37e2d1cf 100644 --- a/arch/sh/kernel/irq.c +++ b/arch/sh/kernel/irq.c @@ -436,7 +436,7 @@ int request_irq(unsigned int irq, action->handler = handler; action->flags = irqflags; - cpus_clear(action->mask); + action->mask = 0; action->name = devname; action->next = NULL; action->dev_id = dev_id; @@ -575,49 +575,6 @@ unsigned long probe_irq_on(void) EXPORT_SYMBOL(probe_irq_on); -/* Return a mask of triggered interrupts (this - * can handle only legacy ISA interrupts). - */ - -/* - * probe_irq_mask - scan a bitmap of interrupt lines - * @val: mask of interrupts to consider - * - * Scan the ISA bus interrupt lines and return a bitmap of - * active interrupts. The interrupt probe logic state is then - * returned to its previous value. - * - * Note: we need to scan all the irq's even though we will - * only return ISA irq numbers - just so that we reset them - * all to a known state. - */ -unsigned int probe_irq_mask(unsigned long val) -{ - int i; - unsigned int mask; - - mask = 0; - for (i = 0; i < NR_IRQS; i++) { - irq_desc_t *desc = irq_desc + i; - unsigned int status; - - spin_lock_irq(&desc->lock); - status = desc->status; - - if (status & IRQ_AUTODETECT) { - if (i < 16 && !(status & IRQ_WAITING)) - mask |= 1 << i; - - desc->status = status & ~IRQ_AUTODETECT; - desc->handler->shutdown(i); - } - spin_unlock_irq(&desc->lock); - } - up(&probe_sem); - - return mask & val; -} - int probe_irq_off(unsigned long val) { int i, irq_found, nr_irqs;