projects/linux·commit d9e4ad5b

Document that IRQ_NONE should be returned when IRQ not actually handled

d9e4ad5b · David Woodhouse <[email protected]> · 2015-10-28 16:14:31 +09:00

Our IRQ storm detection works when an interrupt handler returns
IRQ_NONE for thousands of consecutive interrupts in a second. It
doesn't hurt to occasionally return IRQ_NONE when the interrupt is
actually genuine.

Drivers should only be returning IRQ_HANDLED if they have actually
*done* something to stop an interrupt from happening — it doesn't just
mean "this really *was* my device".

Signed-off-by: David Woodhouse <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
Commit
d9e4ad5badf4ccbfddee208c898fb8fd0c8836b1
Parents
3b93baf5

Changes

1 files changed · +1 −1

FileStatusAddDelContent
include/linux/irqreturn.hmodified+1−1View file

include/linux/irqreturn.h

View file
diff --git a/include/linux/irqreturn.h b/include/linux/irqreturn.h
index e374e36..eb1bdcf 100644
--- a/include/linux/irqreturn.h
+++ b/include/linux/irqreturn.h
@@ -3,7 +3,7 @@
/**
* enum irqreturn
- * @IRQ_NONE interrupt was not from this device
+ * @IRQ_NONE interrupt was not from this device or was not handled
* @IRQ_HANDLED interrupt was handled by this device
* @IRQ_WAKE_THREAD handler requests to wake the handler thread
*/