WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Fix cpu_khz reporting in XenLinux., Xen patchbot -unstable <=