#include <asm/bitops.h>
#include <asm/atomic.h>
-extern unsigned char boot_cpu_id;
-
extern cpumask_t phys_cpu_present_map;
#define cpu_possible_map phys_cpu_present_map
}
}
-#define smp_processor_id() (current_thread_info()->cpu)
+#define raw_smp_processor_id() (current_thread_info()->cpu)
+
+extern void smp_setup_cpu_possible_map(void);
#endif /* !(__ASSEMBLY__) */
+#else
+
+#define smp_setup_cpu_possible_map() do { } while (0)
+
#endif /* !(CONFIG_SMP) */
#define NO_PROC_ID 0xFF