[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xen/arm: /spin_lock_irq/spin_lock_irqsave in gic_set_guest_irq
# HG changeset patch # User Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> # Date 1360935143 0 # Node ID 408de23e1533f8d75f4eb8827b3046dbb51d13e3 # Parent bd76879e53ab929f0c990ecfcbc4030c3c0b313a xen/arm: /spin_lock_irq/spin_lock_irqsave in gic_set_guest_irq gic_set_guest_irq can be called with irq disabled Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Committed-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- diff -r bd76879e53ab -r 408de23e1533 xen/arch/arm/gic.c --- a/xen/arch/arm/gic.c Fri Feb 15 13:32:22 2013 +0000 +++ b/xen/arch/arm/gic.c Fri Feb 15 13:32:23 2013 +0000 @@ -477,8 +477,9 @@ void gic_set_guest_irq(struct vcpu *v, u { int i; struct pending_irq *iter, *n; + unsigned long flags; - spin_lock_irq(&gic.lock); + spin_lock_irqsave(&gic.lock, flags); if ( v->is_running && list_empty(&v->arch.vgic.lr_pending) ) { @@ -505,7 +506,7 @@ void gic_set_guest_irq(struct vcpu *v, u list_add_tail(&n->lr_queue, &v->arch.vgic.lr_pending); out: - spin_unlock_irq(&gic.lock); + spin_unlock_irqrestore(&gic.lock, flags); return; } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |