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-ia64-devel

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

To: "Magenheimer, Dan (HP Labs Fort Collins)" <dan.magenheimer@xxxxxx>
Subject: [Xen-ia64-devel] [PATCH] don't print bogus bogomips
From: Alex Williamson <alex.williamson@xxxxxx>
Date: Wed, 09 Nov 2005 16:39:22 -0700
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 09 Nov 2005 23:37:53 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: LOSL
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
   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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-ia64-devel] [PATCH] don't print bogus bogomips, Alex Williamson <=