ia64/xen-unstable

changeset 6181:bf9351732ddf

Fix cpu_khz reporting in XenLinux.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Mon Aug 15 07:26:04 2005 +0000 (2005-08-15)
parents c31e1abf4df2
children d6e64adbff04
files linux-2.6-xen-sparse/arch/xen/i386/kernel/time.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/arch/xen/i386/kernel/time.c	Mon Aug 15 07:24:30 2005 +0000
     1.2 +++ b/linux-2.6-xen-sparse/arch/xen/i386/kernel/time.c	Mon Aug 15 07:26:04 2005 +0000
     1.3 @@ -206,9 +206,9 @@ void init_cpu_khz(void)
     1.4  	struct vcpu_time_info *info = &HYPERVISOR_shared_info->vcpu_time[0];
     1.5  	do_div(__cpu_khz, info->tsc_to_system_mul);
     1.6  	if ( info->tsc_shift < 0 )
     1.7 -		cpu_khz = __cpu_khz >> -info->tsc_shift;
     1.8 +		cpu_khz = __cpu_khz << -info->tsc_shift;
     1.9  	else
    1.10 -		cpu_khz = __cpu_khz << info->tsc_shift;
    1.11 +		cpu_khz = __cpu_khz >> info->tsc_shift;
    1.12  }
    1.13  
    1.14  static u64 get_nsec_offset(struct shadow_time_info *shadow)