summaryrefslogtreecommitdiffstats
path: root/arch/mips/loongson/lemote-2f/irq.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2010-02-27 12:53:38 +0100
committerRalf Baechle <ralf@linux-mips.org>2010-02-27 12:53:38 +0100
commit896508705561bea24656680cdaf3b4095c4d7473 (patch)
treec02b21f167c46e6b20c60f74810121829e65a56e /arch/mips/loongson/lemote-2f/irq.c
parentMIPS: IP27: Convert nmi_lock lock to arch spinlock; (diff)
downloadlinux-896508705561bea24656680cdaf3b4095c4d7473.tar.xz
linux-896508705561bea24656680cdaf3b4095c4d7473.zip
MIPS: i8259: Convert IRQ controller lock to raw spinlock.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to '')
-rw-r--r--arch/mips/loongson/lemote-2f/irq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/loongson/lemote-2f/irq.c b/arch/mips/loongson/lemote-2f/irq.c
index 77d32f9cf31e..882dfcd42c00 100644
--- a/arch/mips/loongson/lemote-2f/irq.c
+++ b/arch/mips/loongson/lemote-2f/irq.c
@@ -38,7 +38,7 @@ int mach_i8259_irq(void)
irq = -1;
if ((LOONGSON_INTISR & LOONGSON_INTEN) & LOONGSON_INT_BIT_INT0) {
- spin_lock(&i8259A_lock);
+ raw_spin_lock(&i8259A_lock);
isr = inb(PIC_MASTER_CMD) &
~inb(PIC_MASTER_IMR) & ~(1 << PIC_CASCADE_IR);
if (!isr)
@@ -56,7 +56,7 @@ int mach_i8259_irq(void)
if (~inb(PIC_MASTER_ISR) & 0x80)
irq = -1;
}
- spin_unlock(&i8259A_lock);
+ raw_spin_unlock(&i8259A_lock);
}
return irq;