[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Fix cpu_khz reporting in XenLinux.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID bf9351732ddf2bd2e48b88eaa0afb5e7f6fff0a8
# Parent  c31e1abf4df2e0514d5ad1731b2db4e6ee721398
Fix cpu_khz reporting in XenLinux.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>

diff -r c31e1abf4df2 -r bf9351732ddf 
linux-2.6-xen-sparse/arch/xen/i386/kernel/time.c
--- a/linux-2.6-xen-sparse/arch/xen/i386/kernel/time.c  Mon Aug 15 07:24:30 2005
+++ b/linux-2.6-xen-sparse/arch/xen/i386/kernel/time.c  Mon Aug 15 07:26:04 2005
@@ -206,9 +206,9 @@
        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)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.