genirq: Add might_sleep() to disable_irq()
[linux-2.6-microblaze.git] / kernel / irq / manage.c
index 5b7cf28..8ce7549 100644 (file)
@@ -723,10 +723,13 @@ EXPORT_SYMBOL(disable_irq_nosync);
  *     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 disable_irq(unsigned int irq)
 {
+       might_sleep();
        if (!__disable_irq_nosync(irq))
                synchronize_irq(irq);
 }