|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] Fix a typo caused by 18898
Fix a typo caused by 18898.
new state is updated too early.
Signed-off-by Kevin Tian <kevin.tian@xxxxxxxxx>
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)
false_runstate.patch
Description: false_runstate.patch
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH] Fix a typo caused by 18898,
Tian, Kevin <=
|
|
|
|
|