diff options
| author | Paul Mundt <lethal@linux-sh.org> | 2010-05-30 23:59:19 -0400 |
|---|---|---|
| committer | Paul Mundt <lethal@linux-sh.org> | 2010-05-30 23:59:19 -0400 |
| commit | 8fa76f7e61ef4e5bc97207143ea4e198b22487bc (patch) | |
| tree | 266c42b6687e68e4febb72d8c031e5facd899a1c /include/linux/threads.h | |
| parent | a41a7b91772da2c77ac0da74285fd8ebd86a85ba (diff) | |
| parent | 67a3e12b05e055c0415c556a315a3d3eb637e29e (diff) | |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'include/linux/threads.h')
| -rw-r--r-- | include/linux/threads.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/threads.h b/include/linux/threads.h index 052b12bec8bd..383ab9592bec 100644 --- a/include/linux/threads.h +++ b/include/linux/threads.h | |||
| @@ -33,4 +33,13 @@ | |||
| 33 | #define PID_MAX_LIMIT (CONFIG_BASE_SMALL ? PAGE_SIZE * 8 : \ | 33 | #define PID_MAX_LIMIT (CONFIG_BASE_SMALL ? PAGE_SIZE * 8 : \ |
| 34 | (sizeof(long) > 4 ? 4 * 1024 * 1024 : PID_MAX_DEFAULT)) | 34 | (sizeof(long) > 4 ? 4 * 1024 * 1024 : PID_MAX_DEFAULT)) |
| 35 | 35 | ||
| 36 | /* | ||
| 37 | * Define a minimum number of pids per cpu. Heuristically based | ||
| 38 | * on original pid max of 32k for 32 cpus. Also, increase the | ||
| 39 | * minimum settable value for pid_max on the running system based | ||
| 40 | * on similar defaults. See kernel/pid.c:pidmap_init() for details. | ||
| 41 | */ | ||
| 42 | #define PIDS_PER_CPU_DEFAULT 1024 | ||
| 43 | #define PIDS_PER_CPU_MIN 8 | ||
| 44 | |||
| 36 | #endif | 45 | #endif |
