diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-02-27 19:19:22 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-02-27 19:19:22 -0500 |
commit | f1dd6ad599732fc89f36fdd65a2c2cf3c63a8711 (patch) | |
tree | 5092207128e47cba99dc0fe373fff6a36f4cb4b8 /arch/mips/jazz/irq.c | |
parent | 8d37a371b6869920e6c40c495c68eabba1ef3909 (diff) | |
parent | e10b234b3c4e255d3300a486c4ac15b43253ac6d (diff) |
Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus
* 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus: (141 commits)
MIPS: Alchemy: defconfig updates
MIPS: Alchemy: Fix Au1100 ethernet build failure
MIPS: Alchemy: Repair db1500/bosporus builds
MIPS: ARC: Cleanup unused definitions from sgialib.h
MIPS: Cobalt: convert legacy port addresses to GT-64111 bus addresses
MIPS: Alchemy: use 36bit addresses for PCMCIA resources.
MIPS: Cobalt: Fix theoretical port aliasing issue
MIPS: Use ALIGN(x, bytes) instead of __ALIGN_MASK(x, bytes - 1)
MIPS: Crazy spinlock speed test.
MIPS: Optimize spinlocks.
MIPS: Alchemy: devboard PM needs to save CPLD registers.
MIPS: PowerTV: Eliminate duplicate opcode definition macros
MIPS: Lemote 2F: Move printks out of port_access_lock.
MIPS: PNX833x: Convert IRQ controller locks to raw spinlocks.
MIPS: Octeon: Replace spinlock with raw_spinlocks in dma-octeon.c.
MIPS: Octeon: Replace rwlocks in irq_chip handlers with raw_spinlocks.
MIPS: Octeon: Convert octeon_irq_msi_lock to raw spinlock.
MIPS: Loongson: Remove pointless sample_lock from oprofile code.
MIPS: SNI: Convert sni_rm200_i8259A_lock to raw spinlock.
MIPS: i8259: Convert IRQ controller lock to raw spinlock.
...
Diffstat (limited to 'arch/mips/jazz/irq.c')
-rw-r--r-- | arch/mips/jazz/irq.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/mips/jazz/irq.c b/arch/mips/jazz/irq.c index 7bd32d04c2cc..ee18028efe92 100644 --- a/arch/mips/jazz/irq.c +++ b/arch/mips/jazz/irq.c | |||
@@ -20,17 +20,17 @@ | |||
20 | #include <asm/jazz.h> | 20 | #include <asm/jazz.h> |
21 | #include <asm/pgtable.h> | 21 | #include <asm/pgtable.h> |
22 | 22 | ||
23 | static DEFINE_SPINLOCK(r4030_lock); | 23 | static DEFINE_RAW_SPINLOCK(r4030_lock); |
24 | 24 | ||
25 | static void enable_r4030_irq(unsigned int irq) | 25 | static void enable_r4030_irq(unsigned int irq) |
26 | { | 26 | { |
27 | unsigned int mask = 1 << (irq - JAZZ_IRQ_START); | 27 | unsigned int mask = 1 << (irq - JAZZ_IRQ_START); |
28 | unsigned long flags; | 28 | unsigned long flags; |
29 | 29 | ||
30 | spin_lock_irqsave(&r4030_lock, flags); | 30 | raw_spin_lock_irqsave(&r4030_lock, flags); |
31 | mask |= r4030_read_reg16(JAZZ_IO_IRQ_ENABLE); | 31 | mask |= r4030_read_reg16(JAZZ_IO_IRQ_ENABLE); |
32 | r4030_write_reg16(JAZZ_IO_IRQ_ENABLE, mask); | 32 | r4030_write_reg16(JAZZ_IO_IRQ_ENABLE, mask); |
33 | spin_unlock_irqrestore(&r4030_lock, flags); | 33 | raw_spin_unlock_irqrestore(&r4030_lock, flags); |
34 | } | 34 | } |
35 | 35 | ||
36 | void disable_r4030_irq(unsigned int irq) | 36 | void disable_r4030_irq(unsigned int irq) |
@@ -38,10 +38,10 @@ void disable_r4030_irq(unsigned int irq) | |||
38 | unsigned int mask = ~(1 << (irq - JAZZ_IRQ_START)); | 38 | unsigned int mask = ~(1 << (irq - JAZZ_IRQ_START)); |
39 | unsigned long flags; | 39 | unsigned long flags; |
40 | 40 | ||
41 | spin_lock_irqsave(&r4030_lock, flags); | 41 | raw_spin_lock_irqsave(&r4030_lock, flags); |
42 | mask &= r4030_read_reg16(JAZZ_IO_IRQ_ENABLE); | 42 | mask &= r4030_read_reg16(JAZZ_IO_IRQ_ENABLE); |
43 | r4030_write_reg16(JAZZ_IO_IRQ_ENABLE, mask); | 43 | r4030_write_reg16(JAZZ_IO_IRQ_ENABLE, mask); |
44 | spin_unlock_irqrestore(&r4030_lock, flags); | 44 | raw_spin_unlock_irqrestore(&r4030_lock, flags); |
45 | } | 45 | } |
46 | 46 | ||
47 | static struct irq_chip r4030_irq_type = { | 47 | static struct irq_chip r4030_irq_type = { |