[haiku-commits] r41402 - haiku/trunk/src/system/kernel/arch/x86

Author: mmlr
Date: 2011-05-09 18:49:17 +0200 (Mon, 09 May 2011)
New Revision: 41402
Changeset: https://dev.haiku-os.org/changeset/41402

Modified:
   haiku/trunk/src/system/kernel/arch/x86/irq_routing_table.cpp
Log:
Actually increase the usage counter by the amount of devices behind the link
device as it may have multiple devices routed to it.


Modified: haiku/trunk/src/system/kernel/arch/x86/irq_routing_table.cpp
===================================================================
--- haiku/trunk/src/system/kernel/arch/x86/irq_routing_table.cpp        
2011-05-09 16:46:18 UTC (rev 41401)
+++ haiku/trunk/src/system/kernel/arch/x86/irq_routing_table.cpp        
2011-05-09 16:49:17 UTC (rev 41402)
@@ -272,7 +272,7 @@
                // 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) {


Other related posts: