|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] arm: fix gic_init_secondary_cpu.
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1343984044 -3600
# Node ID 1de861eb86540eae6fbd84fb903875573d8907ae
# Parent 65ae31da1c536b2551c6465d796642ba42e594a2
arm: fix gic_init_secondary_cpu.
Using spin_lock_irq here is unnecessary (interrupts are not yet enabled) and
wrong (since they will get unexpectedly renabled by spin_unlock_irq).
We can just use spin_lock/spin_unlock.
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Acked-by: Tim Deegan <tim@xxxxxxx>
Committed-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
diff -r 65ae31da1c53 -r 1de861eb8654 xen/arch/arm/gic.c
--- a/xen/arch/arm/gic.c Fri Aug 03 09:54:03 2012 +0100
+++ b/xen/arch/arm/gic.c Fri Aug 03 09:54:04 2012 +0100
@@ -323,10 +323,10 @@ int __init gic_init(void)
/* Set up the per-CPU parts of the GIC for a secondary CPU */
void __cpuinit gic_init_secondary_cpu(void)
{
- spin_lock_irq(&gic.lock);
+ spin_lock(&gic.lock);
gic_cpu_init();
gic_hyp_init();
- spin_unlock_irq(&gic.lock);
+ spin_unlock(&gic.lock);
}
/* Shut down the per-CPU GIC interface */
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |