Fix a typo caused by 18898.
new state is updated too early.
Signed-off-by Kevin Tian <kevin.tian@intel.com>
diff -r a35c146c16c5 xen/common/schedule.c
--- a/xen/common/schedule.c Wed Dec 10 19:00:21 2008 -0500
+++ b/xen/common/schedule.c Wed Dec 10 19:58:26 2008 -0500
@@ -91,14 +91,13 @@
trace_runstate_change(v, new_state);
- v->runstate.state = new_state;
-
delta = new_entry_time - v->runstate.state_entry_time;
if ( delta > 0 )
{
v->runstate.time[v->runstate.state] += delta;
v->runstate.state_entry_time = new_entry_time;
}
+ v->runstate.state = new_state;
}
void vcpu_runstate_get(struct vcpu *v, struct vcpu_runstate_info *runstate)
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel