3333#include <asm/mach/irq.h>
3434#include <asm/hardware/gic.h>
3535
36- static DEFINE_SPINLOCK (irq_controller_lock );
36+ static DEFINE_RAW_SPINLOCK (irq_controller_lock );
3737
3838/* Address of GIC 0 CPU interface */
3939void __iomem * gic_cpu_base_addr __read_mostly ;
@@ -82,30 +82,30 @@ static void gic_mask_irq(struct irq_data *d)
8282{
8383 u32 mask = 1 << (d -> irq % 32 );
8484
85- spin_lock (& irq_controller_lock );
85+ raw_spin_lock (& irq_controller_lock );
8686 writel_relaxed (mask , gic_dist_base (d ) + GIC_DIST_ENABLE_CLEAR + (gic_irq (d ) / 32 ) * 4 );
8787 if (gic_arch_extn .irq_mask )
8888 gic_arch_extn .irq_mask (d );
89- spin_unlock (& irq_controller_lock );
89+ raw_spin_unlock (& irq_controller_lock );
9090}
9191
9292static void gic_unmask_irq (struct irq_data * d )
9393{
9494 u32 mask = 1 << (d -> irq % 32 );
9595
96- spin_lock (& irq_controller_lock );
96+ raw_spin_lock (& irq_controller_lock );
9797 if (gic_arch_extn .irq_unmask )
9898 gic_arch_extn .irq_unmask (d );
9999 writel_relaxed (mask , gic_dist_base (d ) + GIC_DIST_ENABLE_SET + (gic_irq (d ) / 32 ) * 4 );
100- spin_unlock (& irq_controller_lock );
100+ raw_spin_unlock (& irq_controller_lock );
101101}
102102
103103static void gic_eoi_irq (struct irq_data * d )
104104{
105105 if (gic_arch_extn .irq_eoi ) {
106- spin_lock (& irq_controller_lock );
106+ raw_spin_lock (& irq_controller_lock );
107107 gic_arch_extn .irq_eoi (d );
108- spin_unlock (& irq_controller_lock );
108+ raw_spin_unlock (& irq_controller_lock );
109109 }
110110
111111 writel_relaxed (gic_irq (d ), gic_cpu_base (d ) + GIC_CPU_EOI );
@@ -129,7 +129,7 @@ static int gic_set_type(struct irq_data *d, unsigned int type)
129129 if (type != IRQ_TYPE_LEVEL_HIGH && type != IRQ_TYPE_EDGE_RISING )
130130 return - EINVAL ;
131131
132- spin_lock (& irq_controller_lock );
132+ raw_spin_lock (& irq_controller_lock );
133133
134134 if (gic_arch_extn .irq_set_type )
135135 gic_arch_extn .irq_set_type (d , type );
@@ -154,7 +154,7 @@ static int gic_set_type(struct irq_data *d, unsigned int type)
154154 if (enabled )
155155 writel_relaxed (enablemask , base + GIC_DIST_ENABLE_SET + enableoff );
156156
157- spin_unlock (& irq_controller_lock );
157+ raw_spin_unlock (& irq_controller_lock );
158158
159159 return 0 ;
160160}
@@ -182,10 +182,10 @@ static int gic_set_affinity(struct irq_data *d, const struct cpumask *mask_val,
182182 mask = 0xff << shift ;
183183 bit = 1 << (cpu + shift );
184184
185- spin_lock (& irq_controller_lock );
185+ raw_spin_lock (& irq_controller_lock );
186186 val = readl_relaxed (reg ) & ~mask ;
187187 writel_relaxed (val | bit , reg );
188- spin_unlock (& irq_controller_lock );
188+ raw_spin_unlock (& irq_controller_lock );
189189
190190 return IRQ_SET_MASK_OK ;
191191}
@@ -215,9 +215,9 @@ static void gic_handle_cascade_irq(unsigned int irq, struct irq_desc *desc)
215215
216216 chained_irq_enter (chip , desc );
217217
218- spin_lock (& irq_controller_lock );
218+ raw_spin_lock (& irq_controller_lock );
219219 status = readl_relaxed (chip_data -> cpu_base + GIC_CPU_INTACK );
220- spin_unlock (& irq_controller_lock );
220+ raw_spin_unlock (& irq_controller_lock );
221221
222222 gic_irq = (status & 0x3ff );
223223 if (gic_irq == 1023 )
0 commit comments