MIPS: PowerTV: Convert IRQ controller lock to raw spinlock.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Cc: David VomLehn <dvomlehn@cisco.com>
This commit is contained in:
parent
a963dc70a2
commit
c45ef44f47
1 changed files with 3 additions and 3 deletions
|
@ -39,21 +39,21 @@
|
||||||
|
|
||||||
#include <asm/mach-powertv/asic_regs.h>
|
#include <asm/mach-powertv/asic_regs.h>
|
||||||
|
|
||||||
static DEFINE_SPINLOCK(asic_irq_lock);
|
static DEFINE_RAW_SPINLOCK(asic_irq_lock);
|
||||||
|
|
||||||
static inline int get_int(void)
|
static inline int get_int(void)
|
||||||
{
|
{
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
int irq;
|
int irq;
|
||||||
|
|
||||||
spin_lock_irqsave(&asic_irq_lock, flags);
|
raw_spin_lock_irqsave(&asic_irq_lock, flags);
|
||||||
|
|
||||||
irq = (asic_read(int_int_scan) >> 4) - 1;
|
irq = (asic_read(int_int_scan) >> 4) - 1;
|
||||||
|
|
||||||
if (irq == 0 || irq >= NR_IRQS)
|
if (irq == 0 || irq >= NR_IRQS)
|
||||||
irq = -1;
|
irq = -1;
|
||||||
|
|
||||||
spin_unlock_irqrestore(&asic_irq_lock, flags);
|
raw_spin_unlock_irqrestore(&asic_irq_lock, flags);
|
||||||
|
|
||||||
return irq;
|
return irq;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue