aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@xeni.home.kraxel.org>2010-10-04 13:42:27 -0400
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2010-10-18 10:41:43 -0400
commit1a60d05f40882303dad13f8f0e077e2e49ea8996 (patch)
tree6c64463acb4d520292bfe1261593550a1b6300bf
parentb21ddbf50386d10cdd60d8f8e744cff0496d2552 (diff)
xen: set pirq name to something useful.
Impact: cleanup Make pirq show useful information in /proc/interrupts [v2: Removed the parts for arch/x86/xen/pci.c ] Signed-off-by: Gerd Hoffmann <kraxel@xeni.home.kraxel.org> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
-rw-r--r--drivers/xen/events.c4
-rw-r--r--include/xen/events.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/xen/events.c b/drivers/xen/events.c
index 19a93297e890..0fcfb4a1ceab 100644
--- a/drivers/xen/events.c
+++ b/drivers/xen/events.c
@@ -544,7 +544,7 @@ static int find_irq_by_gsi(unsigned gsi)
544 * event channel until the irq actually started up. Return an 544 * event channel until the irq actually started up. Return an
545 * existing irq if we've already got one for the gsi. 545 * existing irq if we've already got one for the gsi.
546 */ 546 */
547int xen_allocate_pirq(unsigned gsi) 547int xen_allocate_pirq(unsigned gsi, char *name)
548{ 548{
549 int irq; 549 int irq;
550 struct physdev_irq irq_op; 550 struct physdev_irq irq_op;
@@ -566,7 +566,7 @@ int xen_allocate_pirq(unsigned gsi)
566 irq = find_unbound_irq(); 566 irq = find_unbound_irq();
567 567
568 set_irq_chip_and_handler_name(irq, &xen_pirq_chip, 568 set_irq_chip_and_handler_name(irq, &xen_pirq_chip,
569 handle_level_irq, "pirq"); 569 handle_level_irq, name);
570 570
571 irq_op.irq = irq; 571 irq_op.irq = irq;
572 if (HYPERVISOR_physdev_op(PHYSDEVOP_alloc_irq_vector, &irq_op)) { 572 if (HYPERVISOR_physdev_op(PHYSDEVOP_alloc_irq_vector, &irq_op)) {
diff --git a/include/xen/events.h b/include/xen/events.h
index 8f6232023b75..8227da8f7165 100644
--- a/include/xen/events.h
+++ b/include/xen/events.h
@@ -66,7 +66,7 @@ void xen_hvm_evtchn_do_upcall(void);
66/* Allocate an irq for a physical interrupt, given a gsi. "Legacy" 66/* Allocate an irq for a physical interrupt, given a gsi. "Legacy"
67 * GSIs are identity mapped; others are dynamically allocated as 67 * GSIs are identity mapped; others are dynamically allocated as
68 * usual. */ 68 * usual. */
69int xen_allocate_pirq(unsigned gsi); 69int xen_allocate_pirq(unsigned gsi, char *name);
70 70
71/* Return vector allocated to pirq */ 71/* Return vector allocated to pirq */
72int xen_vector_from_irq(unsigned pirq); 72int xen_vector_from_irq(unsigned pirq);