diff options
Diffstat (limited to 'kernel/irq/debug.h')
-rw-r--r-- | kernel/irq/debug.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/irq/debug.h b/kernel/irq/debug.h index 17f05ef8f575..e4d3819a91cc 100644 --- a/kernel/irq/debug.h +++ b/kernel/irq/debug.h | |||
@@ -12,6 +12,11 @@ | |||
12 | 12 | ||
13 | static inline void print_irq_desc(unsigned int irq, struct irq_desc *desc) | 13 | static inline void print_irq_desc(unsigned int irq, struct irq_desc *desc) |
14 | { | 14 | { |
15 | static DEFINE_RATELIMIT_STATE(ratelimit, 5 * HZ, 5); | ||
16 | |||
17 | if (!__ratelimit(&ratelimit)) | ||
18 | return; | ||
19 | |||
15 | printk("irq %d, desc: %p, depth: %d, count: %d, unhandled: %d\n", | 20 | printk("irq %d, desc: %p, depth: %d, count: %d, unhandled: %d\n", |
16 | irq, desc, desc->depth, desc->irq_count, desc->irqs_unhandled); | 21 | irq, desc, desc->depth, desc->irq_count, desc->irqs_unhandled); |
17 | printk("->handle_irq(): %p, ", desc->handle_irq); | 22 | printk("->handle_irq(): %p, ", desc->handle_irq); |