[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v3 14/18] xen/arm: IRQ: Store IRQ type in arch_irq_desc



On Tue, 2014-04-08 at 15:44 +0100, Julien Grall wrote:
[...]
> @@ -282,7 +286,8 @@ int setup_dt_irq(const struct dt_irq *irq, struct 
> irqaction *new)
>           * TODO: Handle case where SPI is setup on different CPU than
>           * the targeted CPU and the priority.
>           */
> -        gic_route_irq_to_xen(desc, level, cpumask_of(smp_processor_id()),
> +        desc->arch.type = irq->type;
> +        gic_route_irq_to_xen(desc, cpumask_of(smp_processor_id()),
>                               GIC_PRI_IRQ);
>          desc->handler->startup(desc);
>      }
[...]
> @@ -341,10 +345,9 @@ int route_dt_irq_to_guest(struct domain *d, const struct 
> dt_irq *irq,
>          goto out;
>      }
>  
> -    level = dt_irq_is_level_triggered(irq);
> -    gic_route_irq_to_guest(d, desc, level, cpumask_of(smp_processor_id()),
> +    desc->arch.type = irq->type;
> +    gic_route_irq_to_guest(d, desc, cpumask_of(smp_processor_id()),
>                             GIC_PRI_IRQ);


When I asked why these two assignments weren't using irq_set_type you
said you were going to add an assert.



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.