|
@@ -113,7 +113,6 @@ static void bcm1480_set_affinity(unsigned int irq, const struct cpumask *mask)
|
|
{
|
|
{
|
|
int i = 0, old_cpu, cpu, int_on, k;
|
|
int i = 0, old_cpu, cpu, int_on, k;
|
|
u64 cur_ints;
|
|
u64 cur_ints;
|
|
- struct irq_desc *desc = irq_desc + irq;
|
|
|
|
unsigned long flags;
|
|
unsigned long flags;
|
|
unsigned int irq_dirty;
|
|
unsigned int irq_dirty;
|
|
|
|
|
|
@@ -127,8 +126,7 @@ static void bcm1480_set_affinity(unsigned int irq, const struct cpumask *mask)
|
|
cpu = cpu_logical_map(i);
|
|
cpu = cpu_logical_map(i);
|
|
|
|
|
|
/* Protect against other affinity changers and IMR manipulation */
|
|
/* Protect against other affinity changers and IMR manipulation */
|
|
- spin_lock_irqsave(&desc->lock, flags);
|
|
|
|
- spin_lock(&bcm1480_imr_lock);
|
|
|
|
|
|
+ spin_lock_irqsave(&bcm1480_imr_lock, flags);
|
|
|
|
|
|
/* Swizzle each CPU's IMR (but leave the IP selection alone) */
|
|
/* Swizzle each CPU's IMR (but leave the IP selection alone) */
|
|
old_cpu = bcm1480_irq_owner[irq];
|
|
old_cpu = bcm1480_irq_owner[irq];
|
|
@@ -153,8 +151,7 @@ static void bcm1480_set_affinity(unsigned int irq, const struct cpumask *mask)
|
|
____raw_writeq(cur_ints, IOADDR(A_BCM1480_IMR_MAPPER(cpu) + R_BCM1480_IMR_INTERRUPT_MASK_H + (k*BCM1480_IMR_HL_SPACING)));
|
|
____raw_writeq(cur_ints, IOADDR(A_BCM1480_IMR_MAPPER(cpu) + R_BCM1480_IMR_INTERRUPT_MASK_H + (k*BCM1480_IMR_HL_SPACING)));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- spin_unlock(&bcm1480_imr_lock);
|
|
|
|
- spin_unlock_irqrestore(&desc->lock, flags);
|
|
|
|
|
|
+ spin_unlock_irqrestore(&bcm1480_imr_lock, flags);
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
|