[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] arm: don't bother setting up vtimer, vgic etc on idle CPUs
# HG changeset patch # User Ian Campbell <ian.campbell@xxxxxxxxxx> # Date 1349791538 -3600 # Node ID 1f72d3ae4ccdf5b2c36c7884ee3a4cc4f4754fd9 # Parent c22ecf8daa6971acc57769aa999ab93354f4913f arm: don't bother setting up vtimer, vgic etc on idle CPUs Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Acked-by: Tim Deegan <tim@xxxxxxx> Committed-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- diff -r c22ecf8daa69 -r 1f72d3ae4ccd xen/arch/arm/domain.c --- a/xen/arch/arm/domain.c Tue Oct 09 15:05:38 2012 +0100 +++ b/xen/arch/arm/domain.c Tue Oct 09 15:05:38 2012 +0100 @@ -386,6 +386,10 @@ int vcpu_initialise(struct vcpu *v) v->arch.saved_context.sp = (uint32_t)v->arch.cpu_info; v->arch.saved_context.pc = (uint32_t)continue_new_vcpu; + /* Idle VCPUs don't need the rest of this setup */ + if ( is_idle_vcpu(v) ) + return rc; + if ( (rc = vcpu_vgic_init(v)) != 0 ) return rc; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |