• K
    [IA64] assign_irq_vector() should not panic · 3b5cc090
    Kenji Kaneshige 提交于
    Current assign_irq_vector() will panic if interrupt vectors is running
    out. But I think how to handle the case of lack of interrupt vectors
    should be handled by the caller of this function. For example, some
    PCI devices can raise the interrupt signal via both MSI and I/O
    APIC. So even if the driver for these device fails to allocate a
    vector for MSI, the driver still has a chance to use I/O APIC based
    interrupt. But currently there is no chance for these driver to use
    I/O APIC based interrupt because kernel will panic when
    assign_irq_vector() fails to allocate interrupt vector.
    
    The following patch changes assign_irq_vector() for ia64 to return
    -ENOSPC on error instead of panic (as i386 and x86_64 versions do).
    Signed-off-by: NKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
    Signed-off-by: NTony Luck <tony.luck@intel.com>
    3b5cc090
iosapic.c 30.0 KB