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:
@@ -272,7 +272,7 @@ configure_link_devices(acpi_module_info* acpi, IRQRoutingTable& routingTable,
|
|||||||
// pick that one and update the counts
|
// pick that one and update the counts
|
||||||
irq_descriptor& chosenDescriptor
|
irq_descriptor& chosenDescriptor
|
||||||
= link->possible_irqs.ElementAt(bestIRQIndex);
|
= 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);
|
status_t status = set_current_irq(acpi, link->handle, chosenDescriptor);
|
||||||
if (status != B_OK) {
|
if (status != B_OK) {
|
||||||
|
|||||||
Reference in New Issue
Block a user