mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
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:
1 parent
ecdcad9ec5
commit
9fde610c7b
1 file changed
+2
-2
@@ -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)
|
||||
|
||||