Zwane - is there any reason we couldn't just start re-using irq vector
offsets when this happens? We already re-use the vectors themselves, so
restarting the offset pointer shouldn't really _change_ anything.
In other words, I'm wondering if this simpler patch wouldn't be sufficient
instead?
Can you please test this, and re-submit (and if you can explain why your
patch is better, please do so - I have nothing fundamentally against it, I
just want to understand _why_ the complexity is needed).
Thanks,
Linus
--- 1.58/arch/i386/kernel/io_apic.c Thu Mar 20 03:11:41 2003
+++ edited/arch/i386/kernel/io_apic.c Mon Apr 7 08:25:48 2003
@@ -1110,12 +1110,9 @@
goto next;
if (current_vector > FIRST_SYSTEM_VECTOR) {
- offset++;
+ offset = (offset+1) & 7;
current_vector = FIRST_DEVICE_VECTOR + offset;
}
-
- if (current_vector == FIRST_SYSTEM_VECTOR)
- panic("ran out of interrupt sources!");
IO_APIC_VECTOR(irq) = current_vector;
return current_vector;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/