Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 243516
b: refs/heads/master
c: 4f1fc48
h: refs/heads/master
v: v3
  • Loading branch information
Milton Miller authored and Benjamin Herrenschmidt committed Mar 29, 2011
1 parent d278f16 commit 6663e3a
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 834796a8493809ae6667b65c4c044066f41d32c7
refs/heads/master: 4f1fc48a73a49a60b3e03e6d8fb363d1b328bd4e
16 changes: 8 additions & 8 deletions trunk/arch/powerpc/platforms/pseries/xics.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,26 +250,26 @@ static unsigned int xics_startup(struct irq_data *d)
return 0;
}

static void xics_mask_real_irq(struct irq_data *d)
static void xics_mask_real_irq(unsigned int hwirq)
{
int call_status;

if (d->irq == XICS_IPI)
if (hwirq == XICS_IPI)
return;

call_status = rtas_call(ibm_int_off, 1, 1, NULL, d->irq);
call_status = rtas_call(ibm_int_off, 1, 1, NULL, hwirq);
if (call_status != 0) {
printk(KERN_ERR "%s: ibm_int_off irq=%u returned %d\n",
__func__, d->irq, call_status);
__func__, hwirq, call_status);
return;
}

/* Have to set XIVE to 0xff to be able to remove a slot */
call_status = rtas_call(ibm_set_xive, 3, 1, NULL, d->irq,
call_status = rtas_call(ibm_set_xive, 3, 1, NULL, hwirq,
default_server, 0xff);
if (call_status != 0) {
printk(KERN_ERR "%s: ibm_set_xive(0xff) irq=%u returned %d\n",
__func__, d->irq, call_status);
__func__, hwirq, call_status);
return;
}
}
Expand All @@ -283,13 +283,13 @@ static void xics_mask_irq(struct irq_data *d)
irq = (unsigned int)irq_map[d->irq].hwirq;
if (irq == XICS_IPI || irq == XICS_IRQ_SPURIOUS)
return;
xics_mask_real_irq(d);
xics_mask_real_irq(irq);
}

static void xics_mask_unknown_vec(unsigned int vec)
{
printk(KERN_ERR "Interrupt %u (real) is invalid, disabling it.\n", vec);
xics_mask_real_irq(irq_get_irq_data(vec));
xics_mask_real_irq(vec);
}

static inline unsigned int xics_xirr_vector(unsigned int xirr)
Expand Down

0 comments on commit 6663e3a

Please sign in to comment.