Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251824
b: refs/heads/master
c: d5a1c19
h: refs/heads/master
v: v3
  • Loading branch information
Milton Miller authored and Benjamin Herrenschmidt committed May 26, 2011
1 parent 5d72b7e commit 44a1fef
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 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: 7ef71d753ea0286bfeb4251b9ba592716ebdd9e8
refs/heads/master: d5a1c1937090d72c08c72e8abaa906b26459608e
16 changes: 8 additions & 8 deletions trunk/arch/powerpc/platforms/cell/interrupt.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,14 @@ EXPORT_SYMBOL_GPL(iic_get_target_id);
#ifdef CONFIG_SMP

/* Use the highest interrupt priorities for IPI */
static inline int iic_ipi_to_irq(int ipi)
static inline int iic_msg_to_irq(int msg)
{
return IIC_IRQ_TYPE_IPI + 0xf - ipi;
return IIC_IRQ_TYPE_IPI + 0xf - msg;
}

void iic_cause_IPI(int cpu, int mesg)
void iic_message_pass(int cpu, int msg)
{
out_be64(&per_cpu(cpu_iic, cpu).regs->generate, (0xf - mesg) << 4);
out_be64(&per_cpu(cpu_iic, cpu).regs->generate, (0xf - msg) << 4);
}

struct irq_host *iic_get_irq_host(int node)
Expand All @@ -192,22 +192,22 @@ struct irq_host *iic_get_irq_host(int node)
}
EXPORT_SYMBOL_GPL(iic_get_irq_host);

static void iic_request_ipi(int ipi)
static void iic_request_ipi(int msg)
{
int virq;

virq = irq_create_mapping(iic_host, iic_ipi_to_irq(ipi));
virq = irq_create_mapping(iic_host, iic_msg_to_irq(msg));
if (virq == NO_IRQ) {
printk(KERN_ERR
"iic: failed to map IPI %s\n", smp_ipi_name[ipi]);
"iic: failed to map IPI %s\n", smp_ipi_name[msg]);
return;
}

/*
* If smp_request_message_ipi encounters an error it will notify
* the error. If a message is not needed it will return non-zero.
*/
if (smp_request_message_ipi(virq, ipi))
if (smp_request_message_ipi(virq, msg))
irq_dispose_mapping(virq);
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/platforms/cell/interrupt.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ enum {
};

extern void iic_init_IRQ(void);
extern void iic_cause_IPI(int cpu, int mesg);
extern void iic_message_pass(int cpu, int msg);
extern void iic_request_IPIs(void);
extern void iic_setup_cpu(void);

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/platforms/cell/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ static int smp_cell_cpu_bootable(unsigned int nr)
return 1;
}
static struct smp_ops_t bpa_iic_smp_ops = {
.message_pass = iic_cause_IPI,
.message_pass = iic_message_pass,
.probe = smp_iic_probe,
.kick_cpu = smp_cell_kick_cpu,
.setup_cpu = smp_cell_setup_cpu,
Expand Down

0 comments on commit 44a1fef

Please sign in to comment.