diff options
author | Glauber Costa <gcosta@redhat.com> | 2008-03-27 14:06:01 -0300 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 17:41:32 +0200 |
commit | 24e8ecffa84dd560e0d4d6fcaeca6950805854e7 (patch) | |
tree | 9cd365f9d987180a30c787586d8261742c7e659b /include/asm-x86/smp_64.h | |
parent | b23dab08fa37b302a8980e4cf925f2cb94288538 (diff) | |
download | linux-stable-24e8ecffa84dd560e0d4d6fcaeca6950805854e7.tar.gz linux-stable-24e8ecffa84dd560e0d4d6fcaeca6950805854e7.tar.bz2 linux-stable-24e8ecffa84dd560e0d4d6fcaeca6950805854e7.zip |
x86: split safe_smp_processor_id
This implementation in x86_64 is clean and consistent, but we
sacrifice it for the sake of being equal to i386 (since the other
way around would be harder).
Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/smp_64.h')
-rw-r--r-- | include/asm-x86/smp_64.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-x86/smp_64.h b/include/asm-x86/smp_64.h index eead92e30b29..8ea49529f324 100644 --- a/include/asm-x86/smp_64.h +++ b/include/asm-x86/smp_64.h @@ -27,12 +27,12 @@ static inline int num_booting_cpus(void) return cpus_weight(cpu_callout_map); } +#define safe_smp_processor_id() smp_processor_id() #else /* CONFIG_SMP */ #define stack_smp_processor_id() 0 - +#define safe_smp_processor_id() 0 #endif /* !CONFIG_SMP */ -#define safe_smp_processor_id() smp_processor_id() #endif |