WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Fix a typo caused by 18898

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Fix a typo caused by 18898
From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Date: Thu, 11 Dec 2008 15:04:26 +0800
Accept-language: en-US
Acceptlanguage: en-US
Delivery-date: Wed, 10 Dec 2008 23:05:23 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AclbXrPovb5NBygdTuiyHMImCgmdyQ==
Thread-topic: [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)

Attachment: 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>