x86, ioapic: Move nr_ioapic_registers calculation to mp_register_ioapic.
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 30 Mar 2010 08:07:12 +0000 (01:07 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 4 May 2010 20:35:03 +0000 (13:35 -0700)
commit7716a5c4ff5f1f3dc5e9edcab125cbf7fceef0af
tree83dc3248dd5eb9e9c098ae82da8c48a11dc60b42
parentcf7500c0ea133d66f8449d86392d83f840102632
x86, ioapic: Move nr_ioapic_registers calculation to mp_register_ioapic.

Now that all ioapic registration happens in mp_register_ioapic we can
move the calculation of nr_ioapic_registers there from enable_IO_APIC.
The number of ioapic registers is already calucated in mp_register_ioapic
so all that really needs to be done is to save the caluclated value
in nr_ioapic_registers.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
LKML-Reference: <1269936436-7039-11-git-send-email-ebiederm@xmission.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/apic/io_apic.c