x86, ioapic: Improve handling of i8259A irq init
authorAlek Du <alek.du@intel.com>
Mon, 7 Sep 2009 08:25:45 +0000 (16:25 +0800)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 20 Feb 2010 00:25:17 +0000 (16:25 -0800)
commitd39f6495f66616b637260405d0b5dc2656bc490e
tree2db2d962d336a47e54fb5cc0e069af4b63dfb73e
parent9325a28ce2fa7c597e5ed41455a06c30b82b5710
x86, ioapic: Improve handling of i8259A irq init

Since we already track the number of legacy vectors by nr_legacy_irqs, we
can avoid use static vector allocations -- we can use dynamic one.

Signed-off-by: Alek Du <alek.du@intel.com>
LKML-Reference: <43F901BD926A4E43B106BF17856F07559FB80D01@orsmsx508.amr.corp.intel.com>
Signed-off-by: Jacob Pan <jacob.jun.pan@intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/apic/io_apic.c