From: Thomas Gleixner Date: Fri, 28 Jun 2019 11:11:50 +0000 (+0200) Subject: genirq: Fix misleading synchronize_irq() documentation X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1d21f2af8571c6a6a44e7c1911780614847b0253;p=openwrt%2Fstaging%2Fblogic.git 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 Cc: Marc Zyngier Link: https://lkml.kernel.org/r/20190628111440.189241552@linutronix.de --- 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) {