]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: print out irq nr for msi/ht, v3
authorYinghai Lu <yhlu.kernel@gmail.com>
Thu, 25 Sep 2008 18:53:11 +0000 (11:53 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 16 Oct 2008 14:53:12 +0000 (16:53 +0200)
v2: fix hpet compiling error
v3: Bjorn want to use dev_printk instead

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/hpet.c
arch/x86/kernel/io_apic.c

index 422c577ef6911b00153161c471cb642b1bdc4fa2..2913913f4a46b504afcd0d9fcd64d2400685f137 100644 (file)
@@ -467,6 +467,9 @@ static int hpet_setup_irq(struct hpet_dev *dev)
        irq_set_affinity(dev->irq, cpumask_of_cpu(dev->cpu));
        enable_irq(dev->irq);
 
+       printk(KERN_DEBUG "hpet: %s irq %d for MSI\n",
+                        dev->name, dev->irq);
+
        return 0;
 }
 
index ed68a6f99dc27288924909b11987caec57ea24db..4ee270d30358a894a3bbd70c432766d199d230f5 100644 (file)
@@ -3354,6 +3354,8 @@ static int setup_msi_irq(struct pci_dev *dev, struct msi_desc *desc, int irq)
 #endif
                set_irq_chip_and_handler_name(irq, &msi_chip, handle_edge_irq, "edge");
 
+       dev_printk(KERN_DEBUG, &dev->dev, "irq %d for MSI/MSI-X\n", irq);
+
        return 0;
 }
 
@@ -3586,6 +3588,7 @@ int arch_setup_hpet_msi(unsigned int irq)
        hpet_msi_write(irq, &msg);
        set_irq_chip_and_handler_name(irq, &hpet_msi_type, handle_edge_irq,
                "edge");
+
        return 0;
 }
 #endif
@@ -3682,6 +3685,8 @@ int arch_setup_ht_irq(unsigned int irq, struct pci_dev *dev)
 
                set_irq_chip_and_handler_name(irq, &ht_irq_chip,
                                              handle_edge_irq, "edge");
+
+               dev_printk(KERN_DEBUG, &dev->dev, "irq %d for HT\n", irq);
        }
        return err;
 }