[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] cpuidle: Small fix to urgent_count update logic.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1267009044 0 # Node ID 1bc860c790d9d4e0f8732bc8f1b3fb65583bd842 # Parent 6b7283d7cbc141befb31fbf71e0cc0f3bdb68a4b cpuidle: Small fix to urgent_count update logic. From: Ke Yu <ke.yu@xxxxxxxxx> Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx> --- xen/common/schedule.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff -r 6b7283d7cbc1 -r 1bc860c790d9 xen/common/schedule.c --- a/xen/common/schedule.c Wed Feb 24 10:47:34 2010 +0000 +++ b/xen/common/schedule.c Wed Feb 24 10:57:24 2010 +0000 @@ -107,7 +107,8 @@ static inline void vcpu_urgent_count_upd if ( unlikely(v->is_urgent) ) { - if ( !test_bit(v->vcpu_id, v->domain->poll_mask) ) + if ( !test_bit(_VPF_blocked, &v->pause_flags) || + !test_bit(v->vcpu_id, v->domain->poll_mask) ) { v->is_urgent = 0; atomic_dec(&per_cpu(schedule_data,v->processor).urgent_count); @@ -115,7 +116,8 @@ static inline void vcpu_urgent_count_upd } else { - if ( unlikely(test_bit(v->vcpu_id, v->domain->poll_mask)) ) + if ( unlikely(test_bit(_VPF_blocked, &v->pause_flags) && + test_bit(v->vcpu_id, v->domain->poll_mask)) ) { v->is_urgent = 1; atomic_inc(&per_cpu(schedule_data,v->processor).urgent_count); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |