]> git.baikalelectronics.ru Git - kernel.git/commit
x86, ioapic: Teach mp_register_ioapic to compute a global gsi_end
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 30 Mar 2010 08:07:10 +0000 (01:07 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 4 May 2010 20:34:56 +0000 (13:34 -0700)
commit1bd5a5b66cbdaf37b53237adceb7459156db7571
tree05a81a2c18fabe9a450ba4902f2c0d6ba1986bc7
parent3258c6bcf4fb5099049a8c47b372ca014ccae4a3
x86, ioapic: Teach mp_register_ioapic to compute a global gsi_end

Add the global variable gsi_end and teach mp_register_ioapic
to keep it uptodate as we add more ioapics into the system.

ioapics can only be added early in boot so the code that
runs later can treat gsi_end as a constant.

Remove the have hacks in sfi.c to second guess mp_register_ioapic
by keeping t's own running total of how many gsi's have been seen,
and instead use the gsi_end.

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