v2.6.22.24-op1
[linux-2.6.22.y-op.git] / include / asm-um / smp.h
blob84f8cf29324e8950fd941b38a98fe76eea3a463f
1 #ifndef __UM_SMP_H
2 #define __UM_SMP_H
4 #ifdef CONFIG_SMP
6 #include "linux/bitops.h"
7 #include "asm/current.h"
8 #include "linux/cpumask.h"
10 #define raw_smp_processor_id() (current_thread->cpu)
12 #define cpu_logical_map(n) (n)
13 #define cpu_number_map(n) (n)
14 #define PROC_CHANGE_PENALTY 15 /* Pick a number, any number */
15 extern int hard_smp_processor_id(void);
16 #define NO_PROC_ID -1
18 extern int ncpus;
21 extern inline void smp_cpus_done(unsigned int maxcpus)
25 extern struct task_struct *idle_threads[NR_CPUS];
27 #else
29 #define hard_smp_processor_id() 0
31 #endif
33 #endif