[PATCH] small irq management simplification

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Use mask_ack_irq() where possible.

Signed-off-by: Jan Beulich <[email protected]>

--- linux-2.6.20/kernel/irq/chip.c	2007-02-04 19:44:54.000000000 +0100
+++ 2.6.20-irq-mask-ack/kernel/irq/chip.c	2007-02-09 10:17:26.000000000 +0100
@@ -534,10 +534,8 @@ __set_irq_handler(unsigned int irq, irq_
 
 	/* Uninstall? */
 	if (handle == handle_bad_irq) {
-		if (desc->chip != &no_irq_chip) {
-			desc->chip->mask(irq);
-			desc->chip->ack(irq);
-		}
+		if (desc->chip != &no_irq_chip)
+			mask_ack_irq(desc, irq);
 		desc->status |= IRQ_DISABLED;
 		desc->depth = 1;
 	}


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux