Skip to content

Commit f35ad08

Browse files
author
Marc Zyngier
committed
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@arm.com>
1 parent 4b357da commit f35ad08

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

kernel/irq/manage.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1737,7 +1737,14 @@ void enable_percpu_irq(unsigned int irq, unsigned int type)
17371737
if (!desc)
17381738
return;
17391739

1740+
/*
1741+
* If the trigger type is not specified by the caller, then
1742+
* use the default for this interrupt.
1743+
*/
17401744
type &= IRQ_TYPE_SENSE_MASK;
1745+
if (type == IRQ_TYPE_NONE)
1746+
type = irqd_get_trigger_type(&desc->irq_data);
1747+
17411748
if (type != IRQ_TYPE_NONE) {
17421749
int ret;
17431750

0 commit comments

Comments
 (0)