• Eric W. Biederman's avatar
    [PATCH] genirq: x86_64 irq: Remove the msi assumption that irq == vector · 04b9267b
    Eric W. Biederman authored
    This patch removes the change in behavior of the irq allocation code when
    CONFIG_PCI_MSI is defined.  Removing all instances of the assumption that irq
    == vector.
    
    create_irq is rewritten to first allocate a free irq and then to assign that
    irq a vector.
    
    assign_irq_vector is made static and the AUTO_ASSIGN case which allocates an
    vector not bound to an irq is removed.
    
    The ioapic vector methods are removed, and everything now works with irqs.
    
    The definition of NR_IRQS no longer depends on CONFIG_PCI_MSI
    Signed-off-by: default avatarEric W. Biederman <ebiederm@xmission.com>
    Cc: Ingo Molnar <mingo@elte.hu>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Cc: Rajesh Shah <rajesh.shah@intel.com>
    Cc: Andi Kleen <ak@muc.de>
    Cc: "Protasevich, Natalie" <Natalie.Protasevich@UNISYS.com>
    Cc: "Luck, Tony" <tony.luck@intel.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    04b9267b
io_apic.h 3.59 KB