diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2015-01-03 12:04:58 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2015-01-03 12:04:58 +0100 |
commit | 008d0be72b2f160382c6e880765e96b64a050c65 (patch) | |
tree | 36f48a98a3815a408e2ce1693dd182af90f80305 /release/src/linux/linux/include/linux/threads.h | |
parent | 611becfb8726c60cb060368541ad98191d4532f5 (diff) | |
download | tomato-008d0be72b2f160382c6e880765e96b64a050c65.tar.gz tomato-008d0be72b2f160382c6e880765e96b64a050c65.tar.bz2 |
imported original firmware WRT54GL_v4.30.11_11_US
Diffstat (limited to 'release/src/linux/linux/include/linux/threads.h')
-rw-r--r-- | release/src/linux/linux/include/linux/threads.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/release/src/linux/linux/include/linux/threads.h b/release/src/linux/linux/include/linux/threads.h new file mode 100644 index 00000000..1501072c --- /dev/null +++ b/release/src/linux/linux/include/linux/threads.h @@ -0,0 +1,28 @@ +#ifndef _LINUX_THREADS_H +#define _LINUX_THREADS_H + +#include <linux/config.h> + +/* + * The default limit for the nr of threads is now in + * /proc/sys/kernel/threads-max. + */ + +#ifdef CONFIG_SMP +#ifdef __mips__ +#define NR_CPUS _MIPS_SZLONG +#else +#define NR_CPUS 64 /* Max processors that can be running in SMP */ +#endif +#else +#define NR_CPUS 1 +#endif + +#define MIN_THREADS_LEFT_FOR_ROOT 4 + +/* + * This controls the maximum pid allocated to a process + */ +#define PID_MAX 0x8000 + +#endif |