Skip to content

Commit

Permalink
ARM: tegra: irq: Add tegra_eoi
Browse files Browse the repository at this point in the history
Implement irq_eoi to allow the GIC irq chip flow controller to
be changed to fasteoi.

Signed-off-by: Colin Cross <ccross@android.com>
  • Loading branch information
Colin Cross authored and Will Deacon committed May 11, 2011
1 parent d1d8c66 commit 4bd66cf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions arch/arm/mach-tegra/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,14 @@ static void tegra_ack(struct irq_data *d)
tegra_irq_write_mask(d->irq, ICTLR_CPU_IEP_FIR_CLR);
}

static void tegra_eoi(struct irq_data *d)
{
if (d->irq < FIRST_LEGACY_IRQ)
return;

tegra_irq_write_mask(d->irq, ICTLR_CPU_IEP_FIR_CLR);
}

static int tegra_retrigger(struct irq_data *d)
{
if (d->irq < FIRST_LEGACY_IRQ)
Expand All @@ -116,6 +124,7 @@ void __init tegra_init_irq(void)
}

gic_arch_extn.irq_ack = tegra_ack;
gic_arch_extn.irq_eoi = tegra_eoi;
gic_arch_extn.irq_mask = tegra_mask;
gic_arch_extn.irq_unmask = tegra_unmask;
gic_arch_extn.irq_retrigger = tegra_retrigger;
Expand Down

0 comments on commit 4bd66cf

Please sign in to comment.