aboutsummaryrefslogtreecommitdiff
path: root/include/linux/threads.h
blob: 4bf4f911d57f7c2646f2c78e3269a82ba6df2c0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _LINUX_THREADS_H
#define _LINUX_THREADS_H



#ifndef CONFIG_NR_CPUS
#define CONFIG_NR_CPUS	1
#endif

#define NR_CPUS		CONFIG_NR_CPUS

#define MIN_THREADS_LEFT_FOR_ROOT 4

#define PID_MAX_DEFAULT (CONFIG_BASE_SMALL ? 0x1000 : 0x8000)

#define PID_MAX_LIMIT (CONFIG_BASE_SMALL ? PAGE_SIZE * 8 : \
	(sizeof(long) > 4 ? 4 * 1024 * 1024 : PID_MAX_DEFAULT))

#define PIDS_PER_CPU_DEFAULT	1024
#define PIDS_PER_CPU_MIN	8

#endif