浏览代码

Revert "genirq: assert that irq handlers are indeed running in hardirq context"

This reverts commit 044d408409cc4e1bc75c886e27ca85c270db104c.

The commit added a warning when handle_IRQ_event() is called outside
of hard interrupt context. This breaks the generic tasklet based
interrupt resend mechanism which is used when the hardware has no way
to retrigger the interrupt. So we get a warning for a use case which
is correct and worked for years. Remove it.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Thomas Gleixner 16 年之前
父节点
当前提交
d7226fb6ec
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      kernel/irq/handle.c

+ 0 - 2
kernel/irq/handle.c

@@ -363,8 +363,6 @@ irqreturn_t handle_IRQ_event(unsigned int irq, struct irqaction *action)
 	irqreturn_t ret, retval = IRQ_NONE;
 	irqreturn_t ret, retval = IRQ_NONE;
 	unsigned int status = 0;
 	unsigned int status = 0;
 
 
-	WARN_ONCE(!in_irq(), "BUG: IRQ handler called from non-hardirq context!");
-
 	if (!(action->flags & IRQF_DISABLED))
 	if (!(action->flags & IRQF_DISABLED))
 		local_irq_enable_in_hardirq();
 		local_irq_enable_in_hardirq();