From: Keir Fraser Date: Fri, 10 Dec 2010 10:49:20 +0000 (+0000) Subject: credit2: Putting a vcpu to sleep also removes the delayed_runq_add flag X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ed00ef765e7b90be8e1455f55741f8aa970990e0;p=xen.git credit2: Putting a vcpu to sleep also removes the delayed_runq_add flag Signed-off-by: George Dunlap --- diff --git a/xen/common/sched_credit2.c b/xen/common/sched_credit2.c index d5196beb54..4a52a5b22c 100644 --- a/xen/common/sched_credit2.c +++ b/xen/common/sched_credit2.c @@ -668,6 +668,8 @@ csched_vcpu_sleep(const struct scheduler *ops, struct vcpu *vc) cpu_raise_softirq(vc->processor, SCHEDULE_SOFTIRQ); else if ( __vcpu_on_runq(svc) ) __runq_remove(svc); + else if ( test_bit(__CSFLAG_delayed_runq_add, &svc->flags) ) + clear_bit(__CSFLAG_delayed_runq_add, &svc->flags); } static void