diff options
Diffstat (limited to 'kernel/irq/handle.c')
-rw-r--r-- | kernel/irq/handle.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c index 759b8b04d294..f6cdda68e5c6 100644 --- a/kernel/irq/handle.c +++ b/kernel/irq/handle.c | |||
@@ -338,6 +338,8 @@ irqreturn_t handle_IRQ_event(unsigned int irq, struct irqaction *action) | |||
338 | irqreturn_t ret, retval = IRQ_NONE; | 338 | irqreturn_t ret, retval = IRQ_NONE; |
339 | unsigned int status = 0; | 339 | unsigned int status = 0; |
340 | 340 | ||
341 | WARN_ONCE(!in_irq(), "BUG: IRQ handler called from non-hardirq context!"); | ||
342 | |||
341 | if (!(action->flags & IRQF_DISABLED)) | 343 | if (!(action->flags & IRQF_DISABLED)) |
342 | local_irq_enable_in_hardirq(); | 344 | local_irq_enable_in_hardirq(); |
343 | 345 | ||
@@ -357,6 +359,11 @@ irqreturn_t handle_IRQ_event(unsigned int irq, struct irqaction *action) | |||
357 | } | 359 | } |
358 | 360 | ||
359 | #ifndef CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ | 361 | #ifndef CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ |
362 | |||
363 | #ifdef CONFIG_ENABLE_WARN_DEPRECATED | ||
364 | # warning __do_IRQ is deprecated. Please convert to proper flow handlers | ||
365 | #endif | ||
366 | |||
360 | /** | 367 | /** |
361 | * __do_IRQ - original all in one highlevel IRQ handler | 368 | * __do_IRQ - original all in one highlevel IRQ handler |
362 | * @irq: the interrupt number | 369 | * @irq: the interrupt number |