]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Don't access the APIC in safe_smp_processor_id when it is not mapped yet
authorAndi Kleen <ak@suse.de>
Tue, 26 Sep 2006 08:52:34 +0000 (10:52 +0200)
committerAndi Kleen <andi@basil.nowhere.org>
Tue, 26 Sep 2006 08:52:34 +0000 (10:52 +0200)
commit2d572470cc0cc82937fb9b15e9b418bf74c8aa18
tree4334c97a3a8e2ac409444ecb2d7844d3a63e4118
parentb604661505921ca57fac61020cb2278c2359bd09
[PATCH] Don't access the APIC in safe_smp_processor_id when it is not mapped yet

Lockdep can call the dwarf2 unwinder early, and the dwarf2 code
uses safe_smp_processor_id which tries to access the local APIC page.
But that doesn't work before the APIC code has set up its fixmap.

Check for this case and always return boot cpu then.

Cc: jbeulich@novell.com
Cc: mingo@elte.hu
Signed-off-by: Andi Kleen <ak@suse.de>
arch/x86_64/kernel/apic.c
arch/x86_64/kernel/smp.c
include/asm-x86_64/apic.h