Skip to contentSkip to conversation

small irq management simplification

PATCH New Jan Beulich 1 participant 1 message Feb 14, 2007 IRQ

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 small irq management simplification

Use mask_ack_irq() where possible.

kernel/irq/chip.c +2 -4
@@ -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;
 	}