aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/irq/handle.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/irq/handle.c')
-rw-r--r--kernel/irq/handle.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c
index 48299a8a22f8..1b473e7569aa 100644
--- a/kernel/irq/handle.c
+++ b/kernel/irq/handle.c
@@ -242,6 +242,11 @@ struct irq_desc *irq_to_desc_alloc_cpu(unsigned int irq, int cpu)
242} 242}
243#endif /* !CONFIG_SPARSE_IRQ */ 243#endif /* !CONFIG_SPARSE_IRQ */
244 244
245void clear_kstat_irqs(struct irq_desc *desc)
246{
247 memset(desc->kstat_irqs, 0, nr_cpu_ids * sizeof(*(desc->kstat_irqs)));
248}
249
245/* 250/*
246 * What should we do if we get a hw irq event on an illegal vector? 251 * What should we do if we get a hw irq event on an illegal vector?
247 * Each architecture has to answer this themself. 252 * Each architecture has to answer this themself.