aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/apic.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-01-28 06:43:18 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-28 17:20:26 -0500
commit4904033302c745342e3b3a611881cdee57fbe06a (patch)
treef7c6bcbf21989edbb02b263226865a5e34f13a02 /arch/x86/kernel/apic.c
parenta27a621001f4c3e57caf47feff4b014577fd01c6 (diff)
x86: refactor ->enable_apic_mode() subarch methods
Only ES7000 has a real ->enable_apic_mode() method, the other subarchitectures define it but keep it empty. So mark the vector as NULL, extend the generic code to handle NULL -setup_portio_remap() entries and remove all the empty handlers. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/apic.c')
-rw-r--r--arch/x86/kernel/apic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/apic.c b/arch/x86/kernel/apic.c
index fcbcc03cd4bd..9d6374da4784 100644
--- a/arch/x86/kernel/apic.c
+++ b/arch/x86/kernel/apic.c
@@ -1763,7 +1763,8 @@ void __init connect_bsp_APIC(void)
1763 outb(0x01, 0x23); 1763 outb(0x01, 0x23);
1764 } 1764 }
1765#endif 1765#endif
1766 enable_apic_mode(); 1766 if (apic->enable_apic_mode)
1767 apic->enable_apic_mode();
1767} 1768}
1768 1769
1769/** 1770/**