diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2010-02-27 06:53:38 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2010-02-27 06:53:38 -0500 |
commit | 896508705561bea24656680cdaf3b4095c4d7473 (patch) | |
tree | c02b21f167c46e6b20c60f74810121829e65a56e /arch/mips/loongson | |
parent | 598c5abad7f3e162a01c87a480f8d2cd57643acb (diff) |
MIPS: i8259: Convert IRQ controller lock to raw spinlock.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/loongson')
-rw-r--r-- | arch/mips/loongson/lemote-2f/irq.c | 4 |
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) | |||
38 | irq = -1; | 38 | irq = -1; |
39 | 39 | ||
40 | if ((LOONGSON_INTISR & LOONGSON_INTEN) & LOONGSON_INT_BIT_INT0) { | 40 | if ((LOONGSON_INTISR & LOONGSON_INTEN) & LOONGSON_INT_BIT_INT0) { |
41 | spin_lock(&i8259A_lock); | 41 | raw_spin_lock(&i8259A_lock); |
42 | isr = inb(PIC_MASTER_CMD) & | 42 | isr = inb(PIC_MASTER_CMD) & |
43 | ~inb(PIC_MASTER_IMR) & ~(1 << PIC_CASCADE_IR); | 43 | ~inb(PIC_MASTER_IMR) & ~(1 << PIC_CASCADE_IR); |
44 | if (!isr) | 44 | if (!isr) |
@@ -56,7 +56,7 @@ int mach_i8259_irq(void) | |||
56 | if (~inb(PIC_MASTER_ISR) & 0x80) | 56 | if (~inb(PIC_MASTER_ISR) & 0x80) |
57 | irq = -1; | 57 | irq = -1; |
58 | } | 58 | } |
59 | spin_unlock(&i8259A_lock); | 59 | raw_spin_unlock(&i8259A_lock); |
60 | } | 60 | } |
61 | 61 | ||
62 | return irq; | 62 | return irq; |