aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r--arch/x86/kernel/apic_32.c6
-rw-r--r--arch/x86/kernel/apic_64.c9
2 files changed, 13 insertions, 2 deletions
diff --git a/arch/x86/kernel/apic_32.c b/arch/x86/kernel/apic_32.c
index c3a252b1a8be..f1882329b9cf 100644
--- a/arch/x86/kernel/apic_32.c
+++ b/arch/x86/kernel/apic_32.c
@@ -1155,13 +1155,15 @@ void __cpuinit setup_local_APIC(void)
1155 1155
1156void __cpuinit end_local_APIC_setup(void) 1156void __cpuinit end_local_APIC_setup(void)
1157{ 1157{
1158 unsigned long value;
1159
1160 lapic_setup_esr(); 1158 lapic_setup_esr();
1159
1160#ifdef CONFIG_X86_32
1161 unsigned int value;
1161 /* Disable the local apic timer */ 1162 /* Disable the local apic timer */
1162 value = apic_read(APIC_LVTT); 1163 value = apic_read(APIC_LVTT);
1163 value |= (APIC_LVT_MASKED | LOCAL_TIMER_VECTOR); 1164 value |= (APIC_LVT_MASKED | LOCAL_TIMER_VECTOR);
1164 apic_write(APIC_LVTT, value); 1165 apic_write(APIC_LVTT, value);
1166#endif
1165 1167
1166 setup_apic_nmi_watchdog(NULL); 1168 setup_apic_nmi_watchdog(NULL);
1167 apic_pm_activate(); 1169 apic_pm_activate();
diff --git a/arch/x86/kernel/apic_64.c b/arch/x86/kernel/apic_64.c
index 76c20773bedf..eec10b34dc49 100644
--- a/arch/x86/kernel/apic_64.c
+++ b/arch/x86/kernel/apic_64.c
@@ -1014,6 +1014,15 @@ void __cpuinit setup_local_APIC(void)
1014void __cpuinit end_local_APIC_setup(void) 1014void __cpuinit end_local_APIC_setup(void)
1015{ 1015{
1016 lapic_setup_esr(); 1016 lapic_setup_esr();
1017
1018#ifdef CONFIG_X86_32
1019 unsigned int value;
1020 /* Disable the local apic timer */
1021 value = apic_read(APIC_LVTT);
1022 value |= (APIC_LVT_MASKED | LOCAL_TIMER_VECTOR);
1023 apic_write(APIC_LVTT, value);
1024#endif
1025
1017 setup_apic_nmi_watchdog(NULL); 1026 setup_apic_nmi_watchdog(NULL);
1018 apic_pm_activate(); 1027 apic_pm_activate();
1019} 1028}