From c5c4213aeee7d5cb8fcfe6d6137f9d4512529c7d Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Mon, 9 May 2011 16:49:17 +0000 Subject: [PATCH] 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 --- src/system/kernel/arch/x86/irq_routing_table.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/arch/x86/irq_routing_table.cpp b/src/system/kernel/arch/x86/irq_routing_table.cpp index 575fa8122a..180065cab0 100644 --- a/src/system/kernel/arch/x86/irq_routing_table.cpp +++ b/src/system/kernel/arch/x86/irq_routing_table.cpp @@ -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) {