Merge branch 'next' of git://selinuxproject.org/~jmorris/linux-security
[linux-btrfs-devel.git] / arch / um / include / asm / smp.h
blob4a4b09d4f36648c0bf85724aa9533d9890403a07
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 extern int hard_smp_processor_id(void);
15 #define NO_PROC_ID -1
17 extern int ncpus;
20 static inline void smp_cpus_done(unsigned int maxcpus)
24 extern struct task_struct *idle_threads[NR_CPUS];
26 #else
28 #define hard_smp_processor_id() 0
30 #endif
32 #endif