projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cca0cf
)
x86: avoid early crash in disable_local_APIC()
author
Jan Beulich
<jbeulich@novell.com>
Wed, 14 Jan 2009 12:28:51 +0000
(12:28 +0000)
committer
Ingo Molnar
<mingo@elte.hu>
Thu, 15 Jan 2009 22:48:19 +0000
(23:48 +0100)
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>
arch/x86/kernel/apic.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kernel/apic.c
b/arch/x86/kernel/apic.c
index 0f830e4f56751d0d8499ac64d549b72ee12203a2..d19aa3aab62b45b44f05a19f9ae7efd6937d9a52 100644
(file)
--- a/
arch/x86/kernel/apic.c
+++ b/
arch/x86/kernel/apic.c
@@
-895,6
+895,10
@@
void disable_local_APIC(void)
{
unsigned int value;
+ /* APIC hasn't been mapped yet */
+ if (!apic_phys)
+ return;
+
clear_local_APIC();
/*