ARM: s5pv310: update IRQ combiner to use chained entry/exit functions
authorWill Deacon <will.deacon@arm.com>
Mon, 21 Feb 2011 14:37:43 +0000 (14:37 +0000)
committerWill Deacon <will.deacon@arm.com>
Wed, 11 May 2011 15:04:15 +0000 (16:04 +0100)
This patch updates the IRQ combiner chained IRQ handler code to use the
chained IRQ enter/exit functions in order to function correctly on
primary controllers with different methods of flow control.

This is required for the GIC to move to fasteoi interrupt handling.

Cc: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/mach-exynos4/irq-combiner.c

index f488b66d6806286d6d5a48fd0f11f677b9ebb0a8..5a2758ab055e613d42e619b797ba1a28d020ec53 100644 (file)
@@ -59,8 +59,7 @@ static void combiner_handle_cascade_irq(unsigned int irq, struct irq_desc *desc)
        unsigned int cascade_irq, combiner_irq;
        unsigned long status;
 
-       /* primary controller ack'ing */
-       chip->irq_ack(&desc->irq_data);
+       chained_irq_enter(chip, desc);
 
        spin_lock(&irq_controller_lock);
        status = __raw_readl(chip_data->base + COMBINER_INT_STATUS);
@@ -79,8 +78,7 @@ static void combiner_handle_cascade_irq(unsigned int irq, struct irq_desc *desc)
                generic_handle_irq(cascade_irq);
 
  out:
-       /* primary controller unmasking */
-       chip->irq_unmask(&desc->irq_data);
+       chained_irq_exit(chip, desc);
 }
 
 static struct irq_chip combiner_chip = {