|
@@ -46,6 +46,8 @@ static inline int num_booting_cpus(void)
|
|
|
|
|
|
#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 */
|
|
@@ -63,5 +65,13 @@ static inline int hard_smp_processor_id(void)
|
|
|
}
|
|
|
# endif /* APIC_DEFINITION */
|
|
|
|
|
|
+#else /* CONFIG_X86_LOCAL_APIC */
|
|
|
+
|
|
|
+# ifndef CONFIG_SMP
|
|
|
+# define hard_smp_processor_id() 0
|
|
|
+# endif
|
|
|
+
|
|
|
+#endif /* CONFIG_X86_LOCAL_APIC */
|
|
|
+
|
|
|
#endif
|
|
|
|