Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119469
b: refs/heads/master
c: cc353c3
h: refs/heads/master
i:
  119467: 3e92b6e
v: v3
  • Loading branch information
Arnd Bergmann authored and Paul Mackerras committed Nov 30, 2008
1 parent f37fce6 commit b8cc5b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: d015fe9951641b2d869a7ae4a690be2a05a9dc7f
refs/heads/master: cc353c30bbdb84f4317a6c149ebb11cde2232e40
9 changes: 7 additions & 2 deletions trunk/arch/powerpc/sysdev/mpic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1271,6 +1271,7 @@ void __init mpic_set_default_senses(struct mpic *mpic, u8 *senses, int count)
void __init mpic_init(struct mpic *mpic)
{
int i;
int cpu;

BUG_ON(mpic->num_sources == 0);

Expand Down Expand Up @@ -1313,6 +1314,11 @@ void __init mpic_init(struct mpic *mpic)

mpic_pasemi_msi_init(mpic);

if (mpic->flags & MPIC_PRIMARY)
cpu = hard_smp_processor_id();
else
cpu = 0;

for (i = 0; i < mpic->num_sources; i++) {
/* start with vector = source number, and masked */
u32 vecpri = MPIC_VECPRI_MASK | i |
Expand All @@ -1323,8 +1329,7 @@ void __init mpic_init(struct mpic *mpic)
continue;
/* init hw */
mpic_irq_write(i, MPIC_INFO(IRQ_VECTOR_PRI), vecpri);
mpic_irq_write(i, MPIC_INFO(IRQ_DESTINATION),
1 << hard_smp_processor_id());
mpic_irq_write(i, MPIC_INFO(IRQ_DESTINATION), 1 << cpu);
}

/* Init spurious vector */
Expand Down

0 comments on commit b8cc5b6

Please sign in to comment.