Fix a typo caused by 18898.

new state is updated too early.

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
This commit is contained in:
Keir Fraser committed 2008-12-11 11:30:13 +00:00
1 parent ecdcad9ec5
commit 9fde610c7b
1 file changed
+2 -2
+2 -2
View File
@@ -91,14 +91,14 @@ static inline void vcpu_runstate_change(
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)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.