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

[Xen-ia64-devel] [PATCH] don't print bogus bogomips



   This is a cosmetic fix.  We don't calculate bogomips for CPUs on the
hypervisor, so we shouldn't print out the total bogosum for the CPUs.
This appears to be the same approach x86 takes.  Thanks,

        Alex

-- 
Signed-off-by: Alex Williamson <alex.williamson@xxxxxx>

diff -r be53bbe62f2e xen/arch/ia64/linux-xen/smpboot.c
--- a/xen/arch/ia64/linux-xen/smpboot.c Wed Nov  9 21:31:01 2005
+++ b/xen/arch/ia64/linux-xen/smpboot.c Wed Nov  9 16:30:15 2005
@@ -723,6 +723,7 @@
 void
 smp_cpus_done (unsigned int dummy)
 {
+#ifdef BOGOMIPS
        int cpu;
        unsigned long bogosum = 0;
 
@@ -736,6 +737,10 @@
 
        printk(KERN_INFO "Total of %d processors activated (%lu.%02lu 
BogoMIPS).\n",
               (int)num_online_cpus(), bogosum/(500000/HZ), 
(bogosum/(5000/HZ))%100);
+#else
+       printk(KERN_INFO "Total of %d processors activated.\n",
+              (int)num_online_cpus());
+#endif
 }
 
 static inline void __devinit



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


 


Rackspace

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