Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123037
b: refs/heads/master
c: 78608dd
h: refs/heads/master
i:
  123035: dcaca12
v: v3
  • Loading branch information
Milton Miller authored and Paul Mackerras committed Nov 19, 2008
1 parent 95ba6ba commit 1c0fe87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 29 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: 25ddd738c2ebffb6c2d3cf29c91b986d1bb39c99
refs/heads/master: 78608dd32ce46789e970d6c3c423cd668c138d6c
32 changes: 4 additions & 28 deletions trunk/arch/powerpc/sysdev/mpic.c
Original file line number Diff line number Diff line change
Expand Up @@ -661,17 +661,6 @@ static inline void mpic_eoi(struct mpic *mpic)
(void)mpic_cpu_read(MPIC_INFO(CPU_WHOAMI));
}

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

smp_message_recv(ipi);

return IRQ_HANDLED;
}
#endif /* CONFIG_SMP */

/*
* Linux descriptor level callbacks
*/
Expand Down Expand Up @@ -1543,13 +1532,7 @@ unsigned int mpic_get_mcirq(void)
void mpic_request_ipis(void)
{
struct mpic *mpic = mpic_primary;
long i, err;
static char *ipi_names[] = {
"IPI0 (call function)",
"IPI1 (reschedule)",
"IPI2 (call function single)",
"IPI3 (debugger break)",
};
int i;
BUG_ON(mpic == NULL);

printk(KERN_INFO "mpic: requesting IPIs ... \n");
Expand All @@ -1558,17 +1541,10 @@ 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 %ld\n", i);
break;
}
err = request_irq(vipi, mpic_ipi_action,
IRQF_DISABLED|IRQF_PERCPU,
ipi_names[i], (void *)i);
if (err) {
printk(KERN_ERR "Request of irq %d for IPI %ld failed\n",
vipi, i);
break;
printk(KERN_ERR "Failed to map %s\n", smp_ipi_name[i]);
continue;
}
smp_request_message_ipi(vipi, i);
}
}

Expand Down

0 comments on commit 1c0fe87

Please sign in to comment.