summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorThomas Gleixner2019-06-28 13:11:50 +0200
committerGreg Kroah-Hartman2019-07-21 09:03:12 +0200
commit3f10ccc29780b5ca8b1638941a47018f694ecbc7 (patch)
tree4073352f59becb79db71509f390dd2b8cd081b9b /kernel
parentgenirq: Delay deactivation in free_irq() (diff)
downloadkernel-qcow2-linux-3f10ccc29780b5ca8b1638941a47018f694ecbc7.tar.gz
kernel-qcow2-linux-3f10ccc29780b5ca8b1638941a47018f694ecbc7.tar.xz
kernel-qcow2-linux-3f10ccc29780b5ca8b1638941a47018f694ecbc7.zip
genirq: Fix misleading synchronize_irq() documentation
commit 1d21f2af8571c6a6a44e7c1911780614847b0253 upstream 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 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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 5c76ed5271bb..f8214bbcf5c0 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)
{