Actually increase the usage counter by the amount of devices behind the link

device as it may have multiple devices routed to it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41402 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz 2011-05-09 16:49:17 +00:00
parent 80c4e0ced0
commit c5c4213aee

View File

@ -272,7 +272,7 @@ configure_link_devices(acpi_module_info* acpi, IRQRoutingTable& routingTable,
// pick that one and update the counts
irq_descriptor& chosenDescriptor
= link->possible_irqs.ElementAt(bestIRQIndex);
irqUsage[chosenDescriptor.irq]++;
irqUsage[chosenDescriptor.irq] += link->used_by.Count();
status_t status = set_current_irq(acpi, link->handle, chosenDescriptor);
if (status != B_OK) {