Merge remote-tracking branch 'moduleh/module.h-split'
[linux-2.6/next.git] / arch / sparc / kernel / cpumap.h
blobe639880ab864d88aaed303dd0362e58293518a5c
1 #ifndef _CPUMAP_H
2 #define _CPUMAP_H
4 #ifdef CONFIG_SMP
5 extern void cpu_map_rebuild(void);
6 extern int map_to_cpu(unsigned int index);
7 #define cpu_map_init() cpu_map_rebuild()
8 #else
9 #define cpu_map_init() do {} while (0)
10 static inline int map_to_cpu(unsigned int index)
12 return raw_smp_processor_id();
14 #endif
16 #endif