[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] xen/arm: Fix rtds scheduler for arm
From: denys drozdov <denys.drozdov@xxxxxxxxxxxxxxx> Make Credit2 and RT schedulers to run on arm platform context_saved should be deferred on ARM after IRQs enabled Signed-off-by: denys drozdov <denys.drozdov@xxxxxxxxxxxxxxx> --- xen/arch/arm/domain.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/xen/arch/arm/domain.c b/xen/arch/arm/domain.c index 7221bc8..1626376 100644 --- a/xen/arch/arm/domain.c +++ b/xen/arch/arm/domain.c @@ -64,7 +64,7 @@ static void ctxt_switch_from(struct vcpu *p) * mode. Therefore we don't need to save the context of an idle VCPU. */ if ( is_idle_vcpu(p) ) - goto end_context; + return; p2m_save_state(p); @@ -138,9 +138,6 @@ static void ctxt_switch_from(struct vcpu *p) gic_save_state(p); isb(); - -end_context: - context_saved(p); } static void ctxt_switch_to(struct vcpu *n) @@ -246,6 +243,8 @@ static void schedule_tail(struct vcpu *prev) local_irq_enable(); + context_saved(prev); + if ( prev != current ) update_runstate_area(current); -- 1.7.9.5 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |