diff options
author | Andi Kleen <ak@suse.de> | 2006-09-26 10:52:37 +0200 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2006-09-26 10:52:37 +0200 |
commit | 151f8cc1169f9052095b2be36183ab132d75c6c2 (patch) | |
tree | f3aae7a7e2fc15e88a8471256b2aa43c4850ad0f /include/asm-x86_64/smp.h | |
parent | 34464a5b8937b79801776dfb6970c1b949fed4be (diff) | |
download | op-kernel-dev-151f8cc1169f9052095b2be36183ab132d75c6c2.zip op-kernel-dev-151f8cc1169f9052095b2be36183ab132d75c6c2.tar.gz |
[PATCH] Remove safe_smp_processor_id()
And replace all users with ordinary smp_processor_id. The function
was originally added to get some basic oops information out even
if the GS register was corrupted. However that didn't
work for some anymore because printk is needed to print the oops
and it uses smp_processor_id() already. Also GS register corruptions
are not particularly common anymore.
This also helps the Xen port which would otherwise need to
do this in a special way because it can't access the local APIC.
Cc: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'include/asm-x86_64/smp.h')
-rw-r--r-- | include/asm-x86_64/smp.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/asm-x86_64/smp.h b/include/asm-x86_64/smp.h index 498fbc1..58b5d61 100644 --- a/include/asm-x86_64/smp.h +++ b/include/asm-x86_64/smp.h @@ -66,7 +66,6 @@ static inline int hard_smp_processor_id(void) return GET_APIC_ID(*(unsigned int *)(APIC_BASE+APIC_ID)); } -extern int safe_smp_processor_id(void); extern int __cpu_disable(void); extern void __cpu_die(unsigned int cpu); extern void prefill_possible_map(void); @@ -100,7 +99,6 @@ static inline int cpu_present_to_apicid(int mps_cpu) #ifndef CONFIG_SMP #define stack_smp_processor_id() 0 -#define safe_smp_processor_id() 0 #define cpu_logical_map(x) (x) #else #include <asm/thread_info.h> |