debuggers.hg

changeset 21018:1bc860c790d9

cpuidle: Small fix to urgent_count update logic.

From: Ke Yu <ke.yu@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Feb 24 10:57:24 2010 +0000 (2010-02-24)
parents 6b7283d7cbc1
children 46149b7d5df2
files xen/common/schedule.c
line diff
     1.1 --- a/xen/common/schedule.c	Wed Feb 24 10:47:34 2010 +0000
     1.2 +++ b/xen/common/schedule.c	Wed Feb 24 10:57:24 2010 +0000
     1.3 @@ -107,7 +107,8 @@ static inline void vcpu_urgent_count_upd
     1.4  
     1.5      if ( unlikely(v->is_urgent) )
     1.6      {
     1.7 -        if ( !test_bit(v->vcpu_id, v->domain->poll_mask) )
     1.8 +        if ( !test_bit(_VPF_blocked, &v->pause_flags) ||
     1.9 +             !test_bit(v->vcpu_id, v->domain->poll_mask) )
    1.10          {
    1.11              v->is_urgent = 0;
    1.12              atomic_dec(&per_cpu(schedule_data,v->processor).urgent_count);
    1.13 @@ -115,7 +116,8 @@ static inline void vcpu_urgent_count_upd
    1.14      }
    1.15      else
    1.16      {
    1.17 -        if ( unlikely(test_bit(v->vcpu_id, v->domain->poll_mask)) )
    1.18 +        if ( unlikely(test_bit(_VPF_blocked, &v->pause_flags) &&
    1.19 +                      test_bit(v->vcpu_id, v->domain->poll_mask)) )
    1.20          {
    1.21              v->is_urgent = 1;
    1.22              atomic_inc(&per_cpu(schedule_data,v->processor).urgent_count);