Skip to content

Commit 911079f

Browse files
committed
xen/intrng: fix Xen event balancing
Appears INTRNG wants the PIC to choose the processor, not suggesting a processor? Seems odd. Try this.
1 parent e2a457d commit 911079f

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

sys/dev/xen/intrng/xen_arch_intr.c

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -279,13 +279,9 @@ xen_intrng_intr_bind(device_t dev, struct intr_irqsrc *isrc)
279279
if (CPU_EMPTY(&isrc->isrc_cpu)) {
280280
cpu = xen_arch_intr_next_cpu(xsrc);
281281
CPU_SETOF(cpu, &isrc->isrc_cpu);
282-
} else {
283-
/*
284-
* We can only bind to a single CPU so select
285-
* the first CPU found.
286-
*/
287-
cpu = CPU_FFS(&isrc->isrc_cpu) - 1;
288-
}
282+
} else
283+
/* INTRNG wants the PIC to choose the processor?! */
284+
cpu = xen_arch_intr_next_cpu(xsrc);
289285

290286
return (xen_intr_assign_cpu(xsrc, cpu));
291287
}

0 commit comments

Comments
 (0)