[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 1/2] xen/arm: save/restore irq flags in gic_disable_cpu
On SMP board, gic_disable_cpu is called by an SGI call function when Xen is halting. In this specific case, the interrupts are disabled. Signed-off-by: Julien Grall <julien.grall@xxxxxxxxxx> --- xen/arch/arm/gic.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/gic.c b/xen/arch/arm/gic.c index aa179a9..c9f64f1 100644 --- a/xen/arch/arm/gic.c +++ b/xen/arch/arm/gic.c @@ -419,10 +419,12 @@ void __cpuinit gic_init_secondary_cpu(void) /* Shut down the per-CPU GIC interface */ void gic_disable_cpu(void) { - spin_lock_irq(&gic.lock); + unsigned long flags; + + spin_lock_irqsave(&gic.lock, flags); gic_cpu_disable(); gic_hyp_disable(); - spin_unlock_irq(&gic.lock); + spin_unlock_irqrestore(&gic.lock, flags); } void gic_route_ppis(void) -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |