aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/irq
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/irq')
-rw-r--r--kernel/irq/irqdesc.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c
index fbf8cfa00510..0a7a0908afbc 100644
--- a/kernel/irq/irqdesc.c
+++ b/kernel/irq/irqdesc.c
@@ -231,6 +231,7 @@ int __init early_irq_init(void)
231 alloc_desc_masks(&desc[i], 0, true); 231 alloc_desc_masks(&desc[i], 0, true);
232 init_desc_masks(&desc[i]); 232 init_desc_masks(&desc[i]);
233 desc[i].kstat_irqs = kstat_irqs_all[i]; 233 desc[i].kstat_irqs = kstat_irqs_all[i];
234 lockdep_set_class(&desc[i].lock, &irq_desc_lock_class);
234 } 235 }
235 return arch_early_irq_init(); 236 return arch_early_irq_init();
236} 237}
@@ -251,16 +252,6 @@ void clear_kstat_irqs(struct irq_desc *desc)
251 memset(desc->kstat_irqs, 0, nr_cpu_ids * sizeof(*(desc->kstat_irqs))); 252 memset(desc->kstat_irqs, 0, nr_cpu_ids * sizeof(*(desc->kstat_irqs)));
252} 253}
253 254
254void early_init_irq_lock_class(void)
255{
256 struct irq_desc *desc;
257 int i;
258
259 for_each_irq_desc(i, desc) {
260 lockdep_set_class(&desc->lock, &irq_desc_lock_class);
261 }
262}
263
264unsigned int kstat_irqs_cpu(unsigned int irq, int cpu) 255unsigned int kstat_irqs_cpu(unsigned int irq, int cpu)
265{ 256{
266 struct irq_desc *desc = irq_to_desc(irq); 257 struct irq_desc *desc = irq_to_desc(irq);