aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2019-06-28 12:54:50 +0200
committerThomas Gleixner <tglx@linutronix.de>2019-06-28 13:19:17 +0200
commita8cc6b38d74c31960327ceacadfe2781a97d7cae (patch)
treeb0e6b7140b527e560e71efb6ba37210c1353a8d3 /kernel
parentbd62f444b98d511e7ee9e66c57c082c026230ab7 (diff)
downloadtip-a8cc6b38d74c31960327ceacadfe2781a97d7cae.tar.gz
tip-a8cc6b38d74c31960327ceacadfe2781a97d7cae.tar.xz
tip-a8cc6b38d74c31960327ceacadfe2781a97d7cae.zip
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>
Diffstat (limited to 'kernel')
-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 54a41da65eb3..df8498dcb392 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)
{