ia64/xen-unstable

changeset 16897:63275fd1596a

x86: When Xen is notified that CPU frequency has changed, do not trust
the current TSC-extrapolated time when we re-sync.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Sat Jan 26 11:29:29 2008 +0000 (2008-01-26)
parents 7327e1c2a42c
children 414b37f60e62
files xen/arch/x86/time.c
line diff
     1.1 --- a/xen/arch/x86/time.c	Sat Jan 26 11:25:48 2008 +0000
     1.2 +++ b/xen/arch/x86/time.c	Sat Jan 26 11:29:29 2008 +0000
     1.3 @@ -732,8 +732,10 @@ int cpu_frequency_change(u64 freq)
     1.4      local_irq_disable();
     1.5      rdtscll(curr_tsc);
     1.6      t->local_tsc_stamp = curr_tsc;
     1.7 -    t->stime_local_stamp = get_s_time();
     1.8      t->stime_master_stamp = read_platform_stime();
     1.9 +    /* TSC-extrapolated time may be bogus after frequency change. */
    1.10 +    /*t->stime_local_stamp = get_s_time();*/
    1.11 +    t->stime_local_stamp = t->stime_master_stamp;
    1.12      set_time_scale(&t->tsc_scale, freq);
    1.13      local_irq_enable();
    1.14