[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] x86: Fix time going backwards on CPU frequency change.
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |