diff options
| author | Michal Marek <mmarek@suse.cz> | 2010-10-27 18:15:57 -0400 |
|---|---|---|
| committer | Michal Marek <mmarek@suse.cz> | 2010-10-27 18:15:57 -0400 |
| commit | b74b953b998bcc2db91b694446f3a2619ec32de6 (patch) | |
| tree | 6ce24caabd730f6ae9287ed0676ec32e6ff31e9d /include/linux/threads.h | |
| parent | abb438526201c6a79949ad45375c051b6681c253 (diff) | |
| parent | f6f94e2ab1b33f0082ac22d71f66385a60d8157f (diff) | |
Merge commit 'v2.6.36' into kbuild/misc
Update to be able to fix a recent change to scripts/basic/docproc.c
(commit eda603f).
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 |
