We provide a bogus macro for x86_64 in case CONFIG_X86_LOCAL_APIC
is not set. It will always be set for x86_64, so the effect
is just to make the code equal to i386.
Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
#define safe_smp_processor_id() smp_processor_id()
+#ifdef CONFIG_X86_LOCAL_APIC
+
static inline int logical_smp_processor_id(void)
{
/* we don't want to mark this access volatile - bad code generation */
}
# endif /* APIC_DEFINITION */
+#else /* CONFIG_X86_LOCAL_APIC */
+
+# ifndef CONFIG_SMP
+# define hard_smp_processor_id() 0
+# endif
+
+#endif /* CONFIG_X86_LOCAL_APIC */
+
#endif