Skip to content

Commit

Permalink
powerpc: platforms/8xx irq_data conversion.
Browse files Browse the repository at this point in the history
Signed-off-by: Lennert Buytenhek <buytenh@secretlab.ca>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Lennert Buytenhek authored and Benjamin Herrenschmidt committed Mar 10, 2011
1 parent 5b25088 commit cfe4a10
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions arch/powerpc/platforms/8xx/m8xx_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,15 +218,20 @@ void mpc8xx_restart(char *cmd)

static void cpm_cascade(unsigned int irq, struct irq_desc *desc)
{
struct irq_chip *chip;
int cascade_irq;

if ((cascade_irq = cpm_get_irq()) >= 0) {
struct irq_desc *cdesc = irq_to_desc(cascade_irq);

generic_handle_irq(cascade_irq);
cdesc->chip->eoi(cascade_irq);

chip = get_irq_desc_chip(cdesc);
chip->irq_eoi(&cdesc->irq_data);
}
desc->chip->eoi(irq);

chip = get_irq_desc_chip(desc);
chip->irq_eoi(&desc->irq_data);
}

/* Initialize the internal interrupt controllers. The number of
Expand Down

0 comments on commit cfe4a10

Please sign in to comment.