Friday, Feb. 20, 2004 10:58 AM, Mika Penttilä wrote:I see, thanks
ia64 already has a function ia64_alloc_vector(void) in arch/ia64/kernel/irq_ia64, why the doubling?
+#ifndef CONFIG_PCI_USE_VECTOR
int
ia64_alloc_vector (void)
{
@@ -67,6 +68,7 @@
panic("ia64_alloc_vector: out of interrupt vectors!");
return next_vector++;
}
+#endif
#ifndef CONFIG_PCI_USE_VECTOR is added in arch/ia64/kernel/irq_ia64.c
as above to avoid the double definement of ia64_alloc_vector(void).
Setting CONFIG_PCI_USE_VECTOR to 'Y' by enabling MSI support will
use function ia64_alloc_vector(void) defined in drivers/pci/msi.c.
The main reason behind it is to keep track of the number of vectors
already assigned during the runtime. Keeping track of already assigned
vectors is required in MSI implementation.
Thanks,
Long