• Jiang Liu's avatar
    x86, ioapic: Kill static variable nr_irqs_gsi · 518b2c63
    Jiang Liu authored
    Static variable nr_irqs_gsi is used to maintain the lowest dynamic
    allocatable IRQ number. It may cause trouble when enabling dynamic
    IRQ allocation for IOAPIC, so use arch_dynirq_lower_bound() to
    avoid directly accessing nr_irqs_gsi and kill nr_irqs_gsi.
    Signed-off-by: default avatarJiang Liu <jiang.liu@linux.intel.com>
    Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
    Cc: Tony Luck <tony.luck@intel.com>
    Cc: Joerg Roedel <joro@8bytes.org>
    Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
    Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Cc: Grant Likely <grant.likely@linaro.org>
    Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
    Cc: Bjorn Helgaas <bhelgaas@google.com>
    Cc: Randy Dunlap <rdunlap@infradead.org>
    Cc: Yinghai Lu <yinghai@kernel.org>
    Link: http://lkml.kernel.org/r/1402302011-23642-13-git-send-email-jiang.liu@linux.intel.comSigned-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    518b2c63
io_apic.c 92.1 KB