From: Keir Fraser Date: Thu, 11 Dec 2008 11:30:13 +0000 (+0000) Subject: Fix a typo caused by 18898. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14026^2~39 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9fde610c7bafd2a88dc7bafe0bd2fb5cb3c40e4f;p=xen.git Fix a typo caused by 18898. new state is updated too early. Signed-off-by: Kevin Tian --- diff --git a/xen/common/schedule.c b/xen/common/schedule.c index 872bcf397f..ccb7f1bd78 100644 --- a/xen/common/schedule.c +++ b/xen/common/schedule.c @@ -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)