aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2009-01-14 07:28:51 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-15 06:04:40 -0500
commita08c4743ed5b861c4fa3d75be00da7106c926296 (patch)
tree7f9cc2a8e1edd30c499f59d90363303681ab3530
parentf11826385b63566d98c02d35f592232ee77cd791 (diff)
x86: avoid early crash in disable_local_APIC()
E.g. when called due to an early panic. Signed-off-by: Jan Beulich <jbeulich@novell.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--arch/x86/kernel/apic.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/kernel/apic.c b/arch/x86/kernel/apic.c
index c3dd64fabcf3..38d6aab2358d 100644
--- a/arch/x86/kernel/apic.c
+++ b/arch/x86/kernel/apic.c
@@ -895,6 +895,10 @@ void disable_local_APIC(void)
895{ 895{
896 unsigned int value; 896 unsigned int value;
897 897
898 /* APIC hasn't been mapped yet */
899 if (!apic_phys)
900 return;
901
898 clear_local_APIC(); 902 clear_local_APIC();
899 903
900 /* 904 /*