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] x86: Fix time going backwards on CPU freq

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] x86: Fix time going backwards on CPU frequency change.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 01 Oct 2007 14:00:08 -0700
Delivery-date: Mon, 01 Oct 2007 14:00:30 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/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@xxxxxxxxxxxxx>
# Date 1191227545 -3600
# Node ID b3814860d170b29daa8ee79eec3a6de603c68b9d
# Parent  96895c637d27755226d33ddc34fc966bf839bb71
x86: Fix time going backwards on CPU frequency change.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 xen/arch/x86/time.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 96895c637d27 -r b3814860d170 xen/arch/x86/time.c
--- a/xen/arch/x86/time.c       Mon Oct 01 09:32:04 2007 +0100
+++ b/xen/arch/x86/time.c       Mon Oct 01 09:32:25 2007 +0100
@@ -728,11 +728,11 @@ int cpu_frequency_change(u64 freq)
     u64 curr_tsc;
 
     local_irq_disable();
-    set_time_scale(&t->tsc_scale, freq);
     rdtscll(curr_tsc);
     t->local_tsc_stamp = curr_tsc;
     t->stime_local_stamp = get_s_time();
     t->stime_master_stamp = read_platform_stime();
+    set_time_scale(&t->tsc_scale, freq);
     local_irq_enable();
 
     /* A full epoch should pass before we check for deviation. */

_______________________________________________
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] x86: Fix time going backwards on CPU frequency change., Xen patchbot-unstable <=