1
0
Fork 0

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
alistair/sunxi64-5.4-dsi
Thomas Gleixner 2019-06-28 13:11:50 +02:00
parent 4001d8e876
commit 1d21f2af85
1 changed files with 2 additions and 1 deletions

View File

@ -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)
{