MIPS: PowerTV: Convert IRQ controller lock to raw spinlock.
authorRalf Baechle <ralf@linux-mips.org>
Sat, 27 Feb 2010 11:53:34 +0000 (12:53 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Sat, 27 Feb 2010 11:53:34 +0000 (12:53 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Cc: David VomLehn <dvomlehn@cisco.com>
arch/mips/powertv/asic/asic_int.c

index 80b2eed21ac3d5f81549a09773b6961d48824e9a..325fab9685d1c57ce73d806e194dbc0e167f4946 100644 (file)
 
 #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)
 {
        unsigned long flags;
        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;
 
        if (irq == 0 || irq >= NR_IRQS)
                irq = -1;
 
-       spin_unlock_irqrestore(&asic_irq_lock, flags);
+       raw_spin_unlock_irqrestore(&asic_irq_lock, flags);
 
        return irq;
 }