1 #ifndef _LINUX_THREADS_H 2 #define _LINUX_THREADS_H 3 4 #include <linux/config.h> 5 6 /* 7 * The default limit for the nr of threads is now in 8 * /proc/sys/kernel/threads-max. 9 */ 10 11 #ifdef CONFIG_SMP 12 #define NR_CPUS CONFIG_NR_CPUS 13 #else 14 #define NR_CPUS 1 15 #endif 16 17 #define MIN_THREADS_LEFT_FOR_ROOT 4 18 19 /* 20 * This controls the maximum pid allocated to a process 21 */ 22 #define PID_MAX 0x8000 23 24 #endif 25