aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/xen
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2010-12-02 19:14:27 -0500
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2010-12-02 19:14:27 -0500
commit29dcbc5c25d6d8140337e96bf503c8475092c586 (patch)
tree5a7131cd81974e92f6c8857a06e29a935886181b /drivers/xen
parent2a4c92fa24e1853d0e21f9e6e45859b832240f94 (diff)
xen: allocate irq descs on any NUMA node
Allocate irq descs on any NUMA node (we don't care) rather than specifically node 0, which may not exist. (At the moment NUMA is meaningless within a domain, so any info the kernel has is just from an SRAT table we haven't suppressed/disabled.) Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Diffstat (limited to 'drivers/xen')
-rw-r--r--drivers/xen/events.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/xen/events.c b/drivers/xen/events.c
index 2811bb988ea0..0009e489272c 100644
--- a/drivers/xen/events.c
+++ b/drivers/xen/events.c
@@ -423,7 +423,7 @@ static int find_unbound_irq(void)
423 if (irq == start) 423 if (irq == start)
424 goto no_irqs; 424 goto no_irqs;
425 425
426 res = irq_alloc_desc_at(irq, 0); 426 res = irq_alloc_desc_at(irq, -1);
427 427
428 if (WARN_ON(res != irq)) 428 if (WARN_ON(res != irq))
429 return -1; 429 return -1;
@@ -630,7 +630,7 @@ int xen_map_pirq_gsi(unsigned pirq, unsigned gsi, int shareable, char *name)
630 if (identity_mapped_irq(gsi) || (!xen_initial_domain() && 630 if (identity_mapped_irq(gsi) || (!xen_initial_domain() &&
631 xen_pv_domain())) { 631 xen_pv_domain())) {
632 irq = gsi; 632 irq = gsi;
633 irq_alloc_desc_at(irq, 0); 633 irq_alloc_desc_at(irq, -1);
634 } else 634 } else
635 irq = find_unbound_irq(); 635 irq = find_unbound_irq();
636 636