Skip to content

Commit

Permalink
MIPS: PowerTV: Convert IRQ controller lock to raw spinlock.
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Cc: David VomLehn <dvomlehn@cisco.com>
  • Loading branch information
Ralf Baechle committed Feb 27, 2010
1 parent a963dc7 commit c45ef44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/mips/powertv/asic/asic_int.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,21 @@

#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;
}
Expand Down

0 comments on commit c45ef44

Please sign in to comment.