From 1f5e0290a0710777e9d618f043f39bd24863fb6f Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Mon, 15 Aug 2005 07:26:04 +0000 Subject: Fix cpu_khz reporting in XenLinux. Signed-off-by: Keir Fraser --- linux-2.6-xen-sparse/arch/xen/i386/kernel/time.c | 4 ++-- 1 file 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) -- cgit v1.2.3