ia64/xen-unstable

changeset 18912:a662a934eefe

Fix a typo caused by 18898.

new state is updated too early.

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Dec 11 11:30:13 2008 +0000 (2008-12-11)
parents 0f1a166fe92e
children 68555b9a7d98
files xen/common/schedule.c
line diff
     1.1 --- a/xen/common/schedule.c	Thu Dec 11 11:27:49 2008 +0000
     1.2 +++ b/xen/common/schedule.c	Thu Dec 11 11:30:13 2008 +0000
     1.3 @@ -91,14 +91,14 @@ static inline void vcpu_runstate_change(
     1.4  
     1.5      trace_runstate_change(v, new_state);
     1.6  
     1.7 -    v->runstate.state = new_state;
     1.8 -
     1.9      delta = new_entry_time - v->runstate.state_entry_time;
    1.10      if ( delta > 0 )
    1.11      {
    1.12          v->runstate.time[v->runstate.state] += delta;
    1.13          v->runstate.state_entry_time = new_entry_time;
    1.14      }
    1.15 +
    1.16 +    v->runstate.state = new_state;
    1.17  }
    1.18  
    1.19  void vcpu_runstate_get(struct vcpu *v, struct vcpu_runstate_info *runstate)