Skip to content

Commit

Permalink
xen: allocate irq descs on any NUMA node
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Jeremy Fitzhardinge committed Dec 3, 2010
1 parent 2a4c92f commit 29dcbc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/xen/events.c
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ static int find_unbound_irq(void)
if (irq == start)
goto no_irqs;

res = irq_alloc_desc_at(irq, 0);
res = irq_alloc_desc_at(irq, -1);

if (WARN_ON(res != irq))
return -1;
Expand Down Expand Up @@ -630,7 +630,7 @@ int xen_map_pirq_gsi(unsigned pirq, unsigned gsi, int shareable, char *name)
if (identity_mapped_irq(gsi) || (!xen_initial_domain() &&
xen_pv_domain())) {
irq = gsi;
irq_alloc_desc_at(irq, 0);
irq_alloc_desc_at(irq, -1);
} else
irq = find_unbound_irq();

Expand Down

0 comments on commit 29dcbc5

Please sign in to comment.