diff options
-rw-r--r-- | linux-2.6-xen-sparse/arch/xen/i386/kernel/time.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-2.6-xen-sparse/arch/xen/i386/kernel/time.c b/linux-2.6-xen-sparse/arch/xen/i386/kernel/time.c index 6b2fe1ccc5..ea421f080b 100644 --- a/linux-2.6-xen-sparse/arch/xen/i386/kernel/time.c +++ b/linux-2.6-xen-sparse/arch/xen/i386/kernel/time.c @@ -206,9 +206,9 @@ void init_cpu_khz(void) struct vcpu_time_info *info = &HYPERVISOR_shared_info->vcpu_time[0]; do_div(__cpu_khz, info->tsc_to_system_mul); if ( info->tsc_shift < 0 ) - cpu_khz = __cpu_khz >> -info->tsc_shift; + cpu_khz = __cpu_khz << -info->tsc_shift; else - cpu_khz = __cpu_khz << info->tsc_shift; + cpu_khz = __cpu_khz >> info->tsc_shift; } static u64 get_nsec_offset(struct shadow_time_info *shadow) |