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-changelog

[Xen-changelog] [xen-unstable] Fix a typo caused by 18898.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Fix a typo caused by 18898.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 16 Dec 2008 22:30:33 -0800
Delivery-date: Tue, 16 Dec 2008 22:31:16 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1228995013 0
# Node ID a662a934eefecccd4854391bcdb0d85431e7e2d3
# Parent  0f1a166fe92e489d0b5e3d3d35bcdb004b20f0eb
Fix a typo caused by 18898.

new state is updated too early.

Signed-off-by: Kevin Tian <kevin.tian@xxxxxxxxx>
---
 xen/common/schedule.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r 0f1a166fe92e -r a662a934eefe xen/common/schedule.c
--- a/xen/common/schedule.c     Thu Dec 11 11:27:49 2008 +0000
+++ b/xen/common/schedule.c     Thu Dec 11 11:30:13 2008 +0000
@@ -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)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Fix a typo caused by 18898., Xen patchbot-unstable <=