ChangeSet 1.2231.1.62, 2005/03/28 19:33:53-08:00, [EMAIL PROTECTED]

        [PATCH] x86_64: Remove noisy printk in K8 bus detection code
        
        Remove noisy printk in K8 bus detection code
        
        Signed-off-by: Andi Kleen <[EMAIL PROTECTED]>
        Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
        Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>



 k8-bus.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)


diff -Nru a/arch/x86_64/pci/k8-bus.c b/arch/x86_64/pci/k8-bus.c
--- a/arch/x86_64/pci/k8-bus.c  2005-03-28 21:20:06 -08:00
+++ b/arch/x86_64/pci/k8-bus.c  2005-03-28 21:20:06 -08:00
@@ -29,7 +29,7 @@
 fill_mp_bus_to_cpumask(void)
 {
        struct pci_dev *nb_dev = NULL;
-       int i, j;
+       int i, j, printed;
        u32 ldtbus, nid;
        static int lbnr[3] = {
                LDT_BUS_NUMBER_REGISTER_0,
@@ -60,11 +60,15 @@
        }
 
        /* quick sanity check */
+       printed = 0;
        for (i = 0; i < 256; i++) {
                if (cpus_empty(pci_bus_to_cpumask[i])) {
-                       printk(KERN_ERR
-                              "k8-bus.c: bus %i has empty cpu mask\n", i);
                        pci_bus_to_cpumask[i] = CPU_MASK_ALL;
+                       if (printed)
+                               continue;
+                       printk(KERN_ERR
+                              "k8-bus.c: some busses have empty cpu mask\n");
+                       printed = 1;
                }
        }
 
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to