public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 7/7] x86: print out irq nr for msi/ht -v2
@ 2008-09-25  6:13 Yinghai Lu
  2008-09-25  8:42 ` Ingo Molnar
                   ` (3 more replies)
  0 siblings, 4 replies; 17+ messages in thread
From: Yinghai Lu @ 2008-09-25  6:13 UTC (permalink / raw)
  To: Jesse Barnes, Len Brown, Ingo Molnar, Thomas Gleixner,
	H. Peter Anvin, Andrew Morton
  Cc: linux-kernel, linux-pci, linux-acpi, Yinghai Lu

v2: fix hpet compiling

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
---
 arch/x86/kernel/hpet.c    |    3 +++
 arch/x86/kernel/io_apic.c |    7 +++++++
 2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/arch/x86/kernel/hpet.c b/arch/x86/kernel/hpet.c
index 422c577..686505a 100644
--- a/arch/x86/kernel/hpet.c
+++ b/arch/x86/kernel/hpet.c
@@ -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 is using irq %#x aka %d for MSI\n",
+			 dev->name, dev->irq, dev->irq);
+
 	return 0;
 }
 
diff --git a/arch/x86/kernel/io_apic.c b/arch/x86/kernel/io_apic.c
index 4cc9cb6..dc82397 100644
--- a/arch/x86/kernel/io_apic.c
+++ b/arch/x86/kernel/io_apic.c
@@ -3355,6 +3355,9 @@ 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");
 
+	printk(KERN_DEBUG "PCI: %s is using irq %#x aka %d for MSI/MSI-X\n",
+			 pci_name(dev), irq, irq);
+
 	return 0;
 }
 
@@ -3587,6 +3590,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
@@ -3683,6 +3687,9 @@ 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");
+
+		printk(KERN_DEBUG "PCI: %s is using irq %#x aka %d for HT\n",
+				 pci_name(dev), irq, irq);
 	}
 	return err;
 }
-- 
1.5.6


^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2008-09-30  4:21 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-25  6:13 [PATCH 7/7] x86: print out irq nr for msi/ht -v2 Yinghai Lu
2008-09-25  8:42 ` Ingo Molnar
2008-09-25  9:12   ` Ingo Molnar
2008-09-25 17:03     ` Yinghai Lu
2008-09-25 17:20     ` Yinghai Lu
2008-09-27 18:44       ` Ingo Molnar
2008-09-25 11:30 ` Rolf Eike Beer
2008-09-25 15:00 ` Bjorn Helgaas
2008-09-25 17:07   ` Yinghai Lu
2008-09-25 17:52     ` Bjorn Helgaas
2008-09-27 18:53       ` Ingo Molnar
2008-09-27 19:02         ` Cyrill Gorcunov
2008-09-29 17:05           ` Jesse Barnes
2008-09-29 17:29             ` Cyrill Gorcunov
2008-09-29 19:57               ` Grant Grundler
2008-09-30  4:20                 ` Cyrill Gorcunov
2008-09-29 17:45 ` Pallipadi, Venkatesh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox