]> err.no Git - linux-2.6/commitdiff
x86: split safe_smp_processor_id
authorGlauber Costa <gcosta@redhat.com>
Thu, 27 Mar 2008 17:06:01 +0000 (14:06 -0300)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Apr 2008 15:41:32 +0000 (17:41 +0200)
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>
include/asm-x86/smp_64.h

index eead92e30b2938ddc09d9aa134b4fb34a3260aaf..8ea49529f3248be1767fada1df474979c44d56c6 100644 (file)
@@ -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