[PATCH] don't print bogus bogomips

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[PATCH] don't print bogus bogomips

Alex Williamson

   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,


Signed-off-by: Alex Williamson <[hidden email]>

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 @@
 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);
+ printk(KERN_INFO "Total of %d processors activated.\n",
+       (int)num_online_cpus());
 static inline void __devinit

Xen-ia64-devel mailing list
[hidden email]