summaryrefslogtreecommitdiff
path: root/kernel/irq
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2019-06-28 14:11:50 +0300
committerThomas Gleixner <tglx@linutronix.de>2019-07-03 11:12:29 +0300
commit1d21f2af8571c6a6a44e7c1911780614847b0253 (patch)
tree616e00dc452c4dcd9d978d70c2b29d42593f60cb /kernel/irq
parent4001d8e8762f57d418b66e4e668601791900a1dd (diff)
downloadlinux-1d21f2af8571c6a6a44e7c1911780614847b0253.tar.xz
genirq: Fix misleading synchronize_irq() documentation
The function might sleep, so it cannot be called from interrupt context. Not even with care. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Marc Zyngier <marc.zyngier@arm.com> Link: https://lkml.kernel.org/r/20190628111440.189241552@linutronix.de
Diffstat (limited to 'kernel/irq')
-rw-r--r--kernel/irq/manage.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index dc8b35f2d545..44fc505815d6 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -96,7 +96,8 @@ EXPORT_SYMBOL(synchronize_hardirq);
* to complete before returning. If you use this function while
* holding a resource the IRQ handler may need you will deadlock.
*
- * This function may be called - with care - from IRQ context.
+ * Can only be called from preemptible code as it might sleep when
+ * an interrupt thread is associated to @irq.
*/
void synchronize_irq(unsigned int irq)
{