Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81086
b: refs/heads/master
c: 194046a
h: refs/heads/master
v: v3
  • Loading branch information
Olof Johansson authored and Paul Mackerras committed Dec 20, 2007
1 parent cedbbb7 commit abec03e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2c0b713f70ecccaf4f535caf602f41350a9f484a
refs/heads/master: 194046a17ee2600908541bc9cd5d6d421805f132
15 changes: 7 additions & 8 deletions trunk/arch/powerpc/sysdev/mpic.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,12 +612,11 @@ static inline void mpic_eoi(struct mpic *mpic)
}

#ifdef CONFIG_SMP
static irqreturn_t mpic_ipi_action(int irq, void *dev_id)
static irqreturn_t mpic_ipi_action(int irq, void *data)
{
struct mpic *mpic;
long ipi = (long)data;

mpic = mpic_find(irq, NULL);
smp_message_recv(mpic_irq_to_hw(irq) - mpic->ipi_vecs[0]);
smp_message_recv(ipi);

return IRQ_HANDLED;
}
Expand Down Expand Up @@ -1457,7 +1456,7 @@ unsigned int mpic_get_irq(void)
void mpic_request_ipis(void)
{
struct mpic *mpic = mpic_primary;
int i, err;
long i, err;
static char *ipi_names[] = {
"IPI0 (call function)",
"IPI1 (reschedule)",
Expand All @@ -1472,14 +1471,14 @@ void mpic_request_ipis(void)
unsigned int vipi = irq_create_mapping(mpic->irqhost,
mpic->ipi_vecs[0] + i);
if (vipi == NO_IRQ) {
printk(KERN_ERR "Failed to map IPI %d\n", i);
printk(KERN_ERR "Failed to map IPI %ld\n", i);
break;
}
err = request_irq(vipi, mpic_ipi_action,
IRQF_DISABLED|IRQF_PERCPU,
ipi_names[i], mpic);
ipi_names[i], (void *)i);
if (err) {
printk(KERN_ERR "Request of irq %d for IPI %d failed\n",
printk(KERN_ERR "Request of irq %d for IPI %ld failed\n",
vipi, i);
break;
}
Expand Down

0 comments on commit abec03e

Please sign in to comment.