aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/irqreturn.h
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2015-10-28 16:14:31 +0900
committerThomas Gleixner <tglx@linutronix.de>2015-10-30 10:13:26 +0100
commitd9e4ad5badf4ccbfddee208c898fb8fd0c8836b1 (patch)
treed3e50f3afbdb57b8c3eb84d03188cd357c1bec14 /include/linux/irqreturn.h
parentMerge tag 'msi-map-4.4' of git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms into irq/core (diff)
downloadlinux-dev-d9e4ad5badf4ccbfddee208c898fb8fd0c8836b1.tar.xz
linux-dev-d9e4ad5badf4ccbfddee208c898fb8fd0c8836b1.zip
Document that IRQ_NONE should be returned when IRQ not actually handled
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 <David.Woodhouse@intel.com> Cc: davem@davemloft.net Link: http://lkml.kernel.org/r/1446016471.3405.201.camel@infradead.org Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/irqreturn.h')
-rw-r--r--include/linux/irqreturn.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/irqreturn.h b/include/linux/irqreturn.h
index e374e369fb2f..eb1bdcf95f2e 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
*/