Commit-ID: f35ad083783e8ed6ac030f5feb209f864875b413 Gitweb: http://git.kernel.org/tip/f35ad083783e8ed6ac030f5feb209f864875b413 Author: Marc Zyngier <marc.zyngier@xxxxxxx> AuthorDate: Mon, 13 Jun 2016 10:39:44 +0100 Committer: Marc Zyngier <marc.zyngier@xxxxxxx> CommitDate: Mon, 13 Jun 2016 11:53:51 +0100 genirq: Look-up percpu trigger type if not specified by caller As we now do for non-percpu interrupt, perform a lookup of the interrupt trigger if the user doesn't supply one. The difference here is that we can only do it at enable time (trigger configuration can be per-cpu as well). Signed-off-by: Marc Zyngier <marc.zyngier@xxxxxxx> --- kernel/irq/manage.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index eaedeb7..f78b084 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c @@ -1737,7 +1737,14 @@ void enable_percpu_irq(unsigned int irq, unsigned int type) if (!desc) return; + /* + * If the trigger type is not specified by the caller, then + * use the default for this interrupt. + */ type &= IRQ_TYPE_SENSE_MASK; + if (type == IRQ_TYPE_NONE) + type = irqd_get_trigger_type(&desc->irq_data); + if (type != IRQ_TYPE_NONE) { int ret; -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
![]() |