diff options
Diffstat (limited to 'arch/arm/kernel/irq.c')
-rw-r--r-- | arch/arm/kernel/irq.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/arch/arm/kernel/irq.c b/arch/arm/kernel/irq.c index c9a8619f3856..3b3d2c80509c 100644 --- a/arch/arm/kernel/irq.c +++ b/arch/arm/kernel/irq.c | |||
@@ -27,7 +27,6 @@ | |||
27 | #include <linux/ioport.h> | 27 | #include <linux/ioport.h> |
28 | #include <linux/interrupt.h> | 28 | #include <linux/interrupt.h> |
29 | #include <linux/irq.h> | 29 | #include <linux/irq.h> |
30 | #include <linux/slab.h> | ||
31 | #include <linux/random.h> | 30 | #include <linux/random.h> |
32 | #include <linux/smp.h> | 31 | #include <linux/smp.h> |
33 | #include <linux/init.h> | 32 | #include <linux/init.h> |
@@ -69,7 +68,7 @@ int show_interrupts(struct seq_file *p, void *v) | |||
69 | } | 68 | } |
70 | 69 | ||
71 | if (i < NR_IRQS) { | 70 | if (i < NR_IRQS) { |
72 | spin_lock_irqsave(&irq_desc[i].lock, flags); | 71 | raw_spin_lock_irqsave(&irq_desc[i].lock, flags); |
73 | action = irq_desc[i].action; | 72 | action = irq_desc[i].action; |
74 | if (!action) | 73 | if (!action) |
75 | goto unlock; | 74 | goto unlock; |
@@ -84,7 +83,7 @@ int show_interrupts(struct seq_file *p, void *v) | |||
84 | 83 | ||
85 | seq_putc(p, '\n'); | 84 | seq_putc(p, '\n'); |
86 | unlock: | 85 | unlock: |
87 | spin_unlock_irqrestore(&irq_desc[i].lock, flags); | 86 | raw_spin_unlock_irqrestore(&irq_desc[i].lock, flags); |
88 | } else if (i == NR_IRQS) { | 87 | } else if (i == NR_IRQS) { |
89 | #ifdef CONFIG_FIQ | 88 | #ifdef CONFIG_FIQ |
90 | show_fiq_list(p, v); | 89 | show_fiq_list(p, v); |
@@ -139,7 +138,7 @@ void set_irq_flags(unsigned int irq, unsigned int iflags) | |||
139 | } | 138 | } |
140 | 139 | ||
141 | desc = irq_desc + irq; | 140 | desc = irq_desc + irq; |
142 | spin_lock_irqsave(&desc->lock, flags); | 141 | raw_spin_lock_irqsave(&desc->lock, flags); |
143 | desc->status |= IRQ_NOREQUEST | IRQ_NOPROBE | IRQ_NOAUTOEN; | 142 | desc->status |= IRQ_NOREQUEST | IRQ_NOPROBE | IRQ_NOAUTOEN; |
144 | if (iflags & IRQF_VALID) | 143 | if (iflags & IRQF_VALID) |
145 | desc->status &= ~IRQ_NOREQUEST; | 144 | desc->status &= ~IRQ_NOREQUEST; |
@@ -147,7 +146,7 @@ void set_irq_flags(unsigned int irq, unsigned int iflags) | |||
147 | desc->status &= ~IRQ_NOPROBE; | 146 | desc->status &= ~IRQ_NOPROBE; |
148 | if (!(iflags & IRQF_NOAUTOEN)) | 147 | if (!(iflags & IRQF_NOAUTOEN)) |
149 | desc->status &= ~IRQ_NOAUTOEN; | 148 | desc->status &= ~IRQ_NOAUTOEN; |
150 | spin_unlock_irqrestore(&desc->lock, flags); | 149 | raw_spin_unlock_irqrestore(&desc->lock, flags); |
151 | } | 150 | } |
152 | 151 | ||
153 | void __init init_IRQ(void) | 152 | void __init init_IRQ(void) |
@@ -166,9 +165,9 @@ static void route_irq(struct irq_desc *desc, unsigned int irq, unsigned int cpu) | |||
166 | { | 165 | { |
167 | pr_debug("IRQ%u: moving from cpu%u to cpu%u\n", irq, desc->node, cpu); | 166 | pr_debug("IRQ%u: moving from cpu%u to cpu%u\n", irq, desc->node, cpu); |
168 | 167 | ||
169 | spin_lock_irq(&desc->lock); | 168 | raw_spin_lock_irq(&desc->lock); |
170 | desc->chip->set_affinity(irq, cpumask_of(cpu)); | 169 | desc->chip->set_affinity(irq, cpumask_of(cpu)); |
171 | spin_unlock_irq(&desc->lock); | 170 | raw_spin_unlock_irq(&desc->lock); |
172 | } | 171 | } |
173 | 172 | ||
174 | /* | 173 | /* |