History

Merge branch 'irq-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip

* 'irq-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: genirq: Wake up irq thread after action has been installed

Linus Torvalds committed 17 years ago

Commit dcd94db2 parents 8486a0f 69ab8491 file · +8 −2Browse files

Unified · Split

kernel/irq/manage.c+8−2
@@ -607,7 +607,6 @@ __setup_irq(unsigned int irq, struct irq_desc *desc, struct irqaction *new) · 606 unmodified lines
607607 */
608608 get_task_struct(t);
609609 new->thread = t;
610− wake_up_process(t);
611610 }
612611
613612 /*
@@ -690,6 +689,7 @@ __setup_irq(unsigned int irq, struct irq_desc *desc, struct irqaction *new) · 76 unmodified lines
690689 (int)(new->flags & IRQF_TRIGGER_MASK));
691690 }
692691
692+ new->irq = irq;
693693 *old_ptr = new;
694694
695695 /* Reset broken irq detection when installing new handler */
@@ -707,7 +707,13 @@ __setup_irq(unsigned int irq, struct irq_desc *desc, struct irqaction *new) · 11 unmodified lines
707707
708708 spin_unlock_irqrestore(&desc->lock, flags);
709709
710− new->irq = irq;
710+ /*
711+ * Strictly no need to wake it up, but hung_task complains
712+ * when no hard interrupt wakes the thread up.
713+ */
714+ if (new->thread)
715+ wake_up_process(new->thread);
716+
711717 register_irq_proc(irq, desc);
712718 new->dir = NULL;
713719 register_handler_proc(irq, new);