aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/apic_32.c
diff options
context:
space:
mode:
authorGlauber de Oliveira Costa <gcosta@redhat.com>2008-03-19 13:25:49 -0400
committerIngo Molnar <mingo@elte.hu>2008-04-17 11:41:02 -0400
commitac60aae561fff99d38beba82d84277b12437c05e (patch)
treec9e40b476e3e75bd5155ac0c755fc88ddfbfe80e /arch/x86/kernel/apic_32.c
parentdf7939ae8bee101d9d79d104e17f14b60845cf0f (diff)
x86: provide an end_local_APIC_setup function
It splits setup_local_APIC in two, providing a function corresponding to the ending part of it. As a side effect, smp_callin looks the same between i386 and x86_64. Signed-off-by: Glauber Costa <gcosta@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/apic_32.c')
-rw-r--r--arch/x86/kernel/apic_32.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/x86/kernel/apic_32.c b/arch/x86/kernel/apic_32.c
index 80c81c76625a..6f506020bd7d 100644
--- a/arch/x86/kernel/apic_32.c
+++ b/arch/x86/kernel/apic_32.c
@@ -1064,9 +1064,13 @@ void __cpuinit setup_local_APIC(void)
1064 if (!integrated) /* 82489DX */ 1064 if (!integrated) /* 82489DX */
1065 value |= APIC_LVT_LEVEL_TRIGGER; 1065 value |= APIC_LVT_LEVEL_TRIGGER;
1066 apic_write_around(APIC_LVT1, value); 1066 apic_write_around(APIC_LVT1, value);
1067}
1067 1068
1068 lapic_setup_esr(); 1069void __cpuinit end_local_APIC_setup(void)
1070{
1071 unsigned long value;
1069 1072
1073 lapic_setup_esr();
1070 /* Disable the local apic timer */ 1074 /* Disable the local apic timer */
1071 value = apic_read(APIC_LVTT); 1075 value = apic_read(APIC_LVTT);
1072 value |= (APIC_LVT_MASKED | LOCAL_TIMER_VECTOR); 1076 value |= (APIC_LVT_MASKED | LOCAL_TIMER_VECTOR);
@@ -1256,6 +1260,7 @@ int __init APIC_init_uniprocessor(void)
1256 1260
1257 setup_local_APIC(); 1261 setup_local_APIC();
1258 1262
1263 end_local_APIC_setup();
1259#ifdef CONFIG_X86_IO_APIC 1264#ifdef CONFIG_X86_IO_APIC
1260 if (smp_found_config) 1265 if (smp_found_config)
1261 if (!skip_ioapic_setup && nr_ioapics) 1266 if (!skip_ioapic_setup && nr_ioapics)