aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/sched_credit2.c
diff options
context:
space:
mode:
authorKeir Fraser <keir@xen.org>2010-12-10 10:49:20 +0000
committerKeir Fraser <keir@xen.org>2010-12-10 10:49:20 +0000
commited00ef765e7b90be8e1455f55741f8aa970990e0 (patch)
treefbcd4770be6cc4ffbc6ab0afcf2329ededc7c959 /xen/common/sched_credit2.c
parent56343b7be11ab9e3aae9a6cbfc0af7a388b3694f (diff)
downloadxen-ed00ef765e7b90be8e1455f55741f8aa970990e0.tar.gz
xen-ed00ef765e7b90be8e1455f55741f8aa970990e0.tar.bz2
xen-ed00ef765e7b90be8e1455f55741f8aa970990e0.zip
credit2: Putting a vcpu to sleep also removes the delayed_runq_add flag
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Diffstat (limited to 'xen/common/sched_credit2.c')
-rw-r--r--xen/common/sched_credit2.c2
1 files changed, 2 insertions, 0 deletions
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