Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 243338
b: refs/heads/master
c: 7bf811a
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner committed Mar 29, 2011
1 parent 135ebd7 commit 887d0b9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 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: a28ab38c440d0391d8a3673514e4cfb079445309
refs/heads/master: 7bf811a8744d1eacff556bb7decc9c606b1537c2
25 changes: 10 additions & 15 deletions trunk/arch/powerpc/sysdev/cpm2_pic.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,26 +115,20 @@ static void cpm2_ack(struct irq_data *d)

static void cpm2_end_irq(struct irq_data *d)
{
struct irq_desc *desc;
int bit, word;
unsigned int irq_nr = virq_to_hw(d->irq);

desc = irq_to_desc(irq_nr);
if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS))
&& desc->action) {

bit = irq_to_siubit[irq_nr];
word = irq_to_siureg[irq_nr];
bit = irq_to_siubit[irq_nr];
word = irq_to_siureg[irq_nr];

ppc_cached_irq_mask[word] |= 1 << bit;
out_be32(&cpm2_intctl->ic_simrh + word, ppc_cached_irq_mask[word]);
ppc_cached_irq_mask[word] |= 1 << bit;
out_be32(&cpm2_intctl->ic_simrh + word, ppc_cached_irq_mask[word]);

/*
* Work around large numbers of spurious IRQs on PowerPC 82xx
* systems.
*/
mb();
}
/*
* Work around large numbers of spurious IRQs on PowerPC 82xx
* systems.
*/
mb();
}

static int cpm2_set_irq_type(struct irq_data *d, unsigned int flow_type)
Expand Down Expand Up @@ -202,6 +196,7 @@ static struct irq_chip cpm2_pic = {
.irq_ack = cpm2_ack,
.irq_eoi = cpm2_end_irq,
.irq_set_type = cpm2_set_irq_type,
.flags = IRQCHIP_EOI_IF_HANDLED,
};

unsigned int cpm2_get_irq(void)
Expand Down

0 comments on commit 887d0b9

Please sign in to comment.