The patch titled kernel/irq/manage.c: add raise_threaded_irq() has been added to the -mm tree. Its filename is kernel-irq-managec-add-raise_threaded_irq.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: kernel/irq/manage.c: add raise_threaded_irq() From: Christian Pellegrin <chripell@xxxxxxxx> raise_threaded_irq() schedules the execution of an interrupt thread. Signed-off-by: Christian Pellegrin <chripell@xxxxxxxx> Cc: Greg KH <greg@xxxxxxxxx> Cc: Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Cc: Feng Tang <feng.tang@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/interrupt.h | 3 +++ kernel/irq/manage.c | 27 +++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) diff -puN include/linux/interrupt.h~kernel-irq-managec-add-raise_threaded_irq include/linux/interrupt.h --- a/include/linux/interrupt.h~kernel-irq-managec-add-raise_threaded_irq +++ a/include/linux/interrupt.h @@ -144,6 +144,9 @@ request_threaded_irq(unsigned int irq, i static inline void exit_irq_thread(void) { } #endif +extern int raise_threaded_irq(unsigned int irq); + + extern void free_irq(unsigned int, void *); struct device; diff -puN kernel/irq/manage.c~kernel-irq-managec-add-raise_threaded_irq kernel/irq/manage.c --- a/kernel/irq/manage.c~kernel-irq-managec-add-raise_threaded_irq +++ a/kernel/irq/manage.c @@ -1106,3 +1106,30 @@ int request_threaded_irq(unsigned int ir return retval; } EXPORT_SYMBOL(request_threaded_irq); + +/** + * raise_threaded_irq - triggers a threded interrupt + * @irq: Interrupt line to trigger + */ +int raise_threaded_irq(unsigned int irq) +{ + struct irq_desc *desc = irq_to_desc(irq); + struct irqaction *action; + + if (!desc) + return -ENOENT; + action = desc->action; + if (!action) + return -ENOENT; + if (unlikely(!action->thread_fn)) + return -EINVAL; + if (likely(!test_bit(IRQTF_DIED, + &action->thread_flags))) { + set_bit(IRQTF_RUNTHREAD, &action->thread_flags); + wake_up_process(action->thread); + } else { + return -ECHILD; + } + return 0; +} +EXPORT_SYMBOL(raise_threaded_irq); _ Patches currently in -mm which might be from chripell@xxxxxxxx are kernel-irq-managec-add-raise_threaded_irq.patch kernel-irq-managec-add-raise_threaded_irq-fix.patch max3100-move-to-threaded-interrupt.patch max3100-add-console-support-for-max3100.patch max3100-to_max3100_port-small-style-fixes.patch max3100-to_max3100_port-small-style-fixes-fix.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html